Skip to content

Commit

Permalink
try to make local build work
Browse files Browse the repository at this point in the history
  • Loading branch information
bongolegend committed Jul 7, 2024
1 parent a77778c commit 17b53cf
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 17 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ yarn-error.*
*.tsbuildinfo

master_file.txt
config.yaml
config.yaml

ios/

# EAS
credentials.json
build-*
9 changes: 7 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"name": "stacks-client",
"slug": "stacks-client",
"version": "1.0.0",
"entrypoint": "./App.tsx",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand All @@ -13,7 +12,8 @@
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.bongolegend.stacksclient"
},
"android": {
"adaptiveIcon": {
Expand All @@ -23,6 +23,11 @@
},
"web": {
"favicon": "./assets/favicon.png"
},
"extra": {
"eas": {
"projectId": "dbdaf225-1eae-412d-837d-f7de8ec20b71"
}
}
}
}
21 changes: 21 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"cli": {
"version": ">= 10.1.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"env": {
"ENV": "dev-device"
}
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
19 changes: 8 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
Expand All @@ -29,6 +29,7 @@
"expo-notifications": "~0.28.9",
"expo-router": "^3.5.14",
"expo-status-bar": "~1.12.1",
"fs": "^0.0.1-security",
"js-yaml": "^4.1.0",
"react": "18.2.0",
"react-datepicker": "^7.2.0",
Expand All @@ -47,7 +48,6 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/react": "^18.3.3",
"@types/react-native": "^0.73.0",
"typescript": "^5.4.5"
},
"private": true
Expand Down
38 changes: 38 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,41 @@ Build with the EAS service.

Submit to App Store.
```eas submit -p ios```


### install development build onto physical device
```eas build --platform ios --profile development```
Then copy the QR code to download the build onto your device.

### build locally
The prebuild may not be necessary, but this generates the native code for the target OS,
a base layer of sorts.
```npx expo prebuild -p ios```

```eas build -p ios --local --profile development```
This may fail on several accounts. I had the following errors:
```fastlane not found```
So i did
```sudo gem install fastlane -NV```
then I got some error like
```some dep is too old, or ruby version too old```
so I had to install a newer version of ruby
```
brew install rbenv\nbrew install ruby-build
rbenv init
eval "$(rbenv init - zsh)"
rbenv install 3.3.3
rbenv global 3.3.3
```
Then I could finally install fastlane.
```sudo gem install fastlane -NV```
Then I could finally run the build
```eas build -p ios --local --profile development```
The build errored
```Distribution certificate with fingerprint xxxxxxxxxxx hasn't been imported successfully```
So I downloaded my Apple Cert and added it to my keychain
https://developer.apple.com/account/resources/certificates/list

But I still got the same error, so I installed this other universal cert and got past that error.
https://github.com/expo/eas-cli/issues/1331#issuecomment-1235603312

0 comments on commit 17b53cf

Please sign in to comment.