-
Notifications
You must be signed in to change notification settings - Fork 7
Local builds
Brian Sharon edited this page Oct 6, 2023
·
3 revisions
Notes to myself on how to build locally and run the build on the simulator. Beats waiting for cloud builds.
- Run
npx eas build --non-interactive --platform ios --profile simulator --local
. You will need to install Xcode if you haven't already. Same for CocoaPods. - The build step produces a tarball, unzip it to get
NWAC.app
- Drag
NWAC.app
into the simulator
Now, running a local build on an actual device. Much more of a pain in the ass. Links:
- https://docs.expo.dev/build-reference/ios-builds/
- https://docs.expo.dev/build/internal-distribution/
- https://developer.apple.com/
- You'll need an Apple ID tied to the NWAC org
- You'll need to install Xcode and CocoaPods
- Add your device to the ad-hoc provisioning profile (
eas device:create
). Optionally give it a better name (eas device:rename
). - Run the build:
npx eas build --platform ios --profile adhoc --local
. Don't use--non-interactive
, it'll prompt you to do various things. - Build should output an IPA, you can install it on a connected device via Xcode (Window -> Devices).