I upgraded from SDK 49 to SDK 51 and I have been struggling to build on iOS production.
I use a dev client, and that builds fine on iOS and Android. Android builds fine in production, but just iOS doesn't.
Been trying to find solutions everywhere.
I've reset all my credentials. Removed examples of duplicate object keys etc... But, nothing is working.
I keep on getting this error:
Run script build phase '[CP-User] Generate updates resources for expo-updates' will be run during every build because it does not specify any outputs. To address this issue, 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 'EXUpdates' from project 'Pods')
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 issue, 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 script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, 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 'BoringSSL-GRPC' from project 'Pods')
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ Ld /Users/expo/Library/Developer/Xcode/DerivedData/Appname-Number/Build/Intermediates.noindex/ArchiveIntermediates/Appname/InstallationBuildProductsLocation/Applications/Appname.app/Appname normal (in target 'Appname' from project 'Appname')
▸ Archiving workspace Appname with scheme Appname
▸ (2 failures)
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/expo/Library/Developer/Xcode/DerivedData/Appname-Number/Build/Intermediates.noindex/ArchiveIntermediates/Appname/InstallationBuildProductsLocation/Applications/Appname.app/Appname normal (in target 'Appname' from project 'Appname')
Archiving workspace Appname with scheme Appname
(2 failures)
Exit status: 65
+---------------------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.225.0 |
| sdk | iPhoneOS18.1.sdk |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project.
It's hard to tell what's causing the error, so we wrote some guides on how to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[!] Error building the application - see the log above
Error: The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.
✔ Check package.json for common issues
✔ Validate global prerequisites versions
✔ Validate Expo Config
✔ Check compatible dependency versions for the installed Expo SDK
✔ Check for conflicting global packages in project
✔ Check for incompatible packages
✔ Verify prebuild support package versions are compatible
Didn't find any issues with the project!
Error output
No response
Reproducible demo or steps to reproduce from a blank project
run eas build --platform ios
From my expo project with expo ~51.0.39
Build/Submit details page URL
No response
Summary
I upgraded from SDK 49 to SDK 51 and I have been struggling to build on iOS production. I use a dev client, and that builds fine on iOS and Android. Android builds fine in production, but just iOS doesn't.
Been trying to find solutions everywhere. I've reset all my credentials. Removed examples of duplicate object keys etc... But, nothing is working.
I keep on getting this error:
Please can anyone give any suggestions?
Managed or bare?
Managed
Environment
expo-env-info 1.0.5 environment info: System: OS: macOS 14.5 Shell: 5.9 - /bin/zsh Binaries: Node: 18.16.1 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 9.5.1 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: DriverKit 24.1, iOS 18.1, macOS 15.1, tvOS 18.1, visionOS 2.1, watchOS 11.1 IDEs: Android Studio: 2024.2 AI-242.23339.11.2421.12550806 Xcode: 16.1/16B40 - /usr/bin/xcodebuild npmPackages: @expo/metro-config: ^0.18.11 => 0.18.11 expo: ~51.0.39 => 51.0.39 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.74.5 => 0.74.5 npmGlobalPackages: eas-cli: 13.2.3 expo-cli: 6.3.10 Expo Workflow: bare
✔ Check package.json for common issues ✔ Validate global prerequisites versions ✔ Validate Expo Config ✔ Check compatible dependency versions for the installed Expo SDK ✔ Check for conflicting global packages in project ✔ Check for incompatible packages ✔ Verify prebuild support package versions are compatible
Didn't find any issues with the project!
Error output
No response
Reproducible demo or steps to reproduce from a blank project
run eas build --platform ios
From my expo project with expo ~51.0.39