EAS local builds not working with Xcode 14
See original GitHub issueI believe this is what’s happening:
My MacOS system updated and subsequently Xcode was updated to version 14. Ever since that happened my eas local builds no longer complete successfully. Submitting builds to the eas build system still works, but the queue can take a really long time so it removes any kind of quick feedback when I need to build an .ipa to install on a real device.
Error:
[RUN_FASTLANE] Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'crumbios' from project 'crumbios')
[RUN_FASTLANE] Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'crumbios' from project 'crumbios')
[RUN_FASTLANE] Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
[RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
[RUN_FASTLANE] ** ARCHIVE FAILED **
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE]
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | Build environment |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.209.1 |
[RUN_FASTLANE] | sdk | iPhoneOS16.0.sdk |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] Looks like fastlane ran into a build/archive error with your project
[RUN_FASTLANE] It's hard to tell what's causing the error, so we wrote some guides on how
[RUN_FASTLANE] to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[RUN_FASTLANE] Before submitting an issue on GitHub, please follow the guide above and make
[RUN_FASTLANE] sure your project is set up correctly.
[RUN_FASTLANE] fastlane uses `xcodebuild` commands to generate your binary, you can see the
[RUN_FASTLANE] the full commands printed out in yellow in the above log.
[RUN_FASTLANE] Make sure to inspect the output above, as usually you'll find more error information there
[RUN_FASTLANE]
[RUN_FASTLANE] [!] Error building the application - see the log above
[RUN_FASTLANE] Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.
[CLEAN_UP_CREDENTIALS] Destroying keychain - /var/folders/pz/c8j7_1zj26g3prvxzsxqddqw0000gn/T/turtle-v2-860bb22b-571a-482d-a939-a10a57b1be9e.keychain
[CLEAN_UP_CREDENTIALS] Removing provisioning profile
Build failed
Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.
Error: npx exited with non-zero code: 1
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:16 (2 by maintainers)
Top Results From Across the Web
react native - EAS local builds not working with Xcode 14
After working on it for Approximately one whole day, I finally got the local builds working with Xcode 14 and iOS 16.
Read more >Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. ... To open the full Xcode logs, scroll to the bottom...
Read more >Configuring your first Xcode Cloud workflow - Apple Developer
Configure your project or workspace to use Xcode Cloud and adopt continuous integration and delivery.
Read more >Code signing issues in Xcode 14 and how to fix them
These errors may come from packages or local packages that have a resources bundle. Xcode 14 tries to code sign resource package bundles,...
Read more >EAS build support for Mac M1 | Voters - Expo - Canny
Run. expo prebuild . It will generate an ios and and android folder. · Open the project in XCode and under Build settings,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks like since Xcode 14, the Pods needs to be signed too. You can fix this by adding some lines in the Pod file. Look for this lines:
and modify them so they will look like:
Replace the
XXXwith your team ID and try again. Good luck!this will work well if you are using sdk 46. sdk 45 and lower may not work as expected. this is generally the case when new xcode versions are released