eas build -p ios | Fastlane build failed with unknown error
See original GitHub issueBuild/Submit details page URL
No response
Summary
I was able to properly create .ipa until last week, but now I get this error in FastLane during linking:
❌ ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1316.0.21.2.3_0' Reader: '1300.0.29.30_0')', using libLTO version 'LLVM version 13.0.0, (clang-1300.0.29.30)' for architecture arm64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to compile it with image=“latest” with no luck. Android build is working properly.
I also tried to archive the project locally with XCode13.3 after “expo prebuild --clean -p ios” and it worked.
Managed or bare?
Managed
Environment
expo-env-info 1.0.2 environment info: System: OS: macOS 12.2.1 Shell: 3.2.57 - /bin/bash Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2021.11.15.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8309675 Xcode: 13.3/13E113 - /usr/bin/xcodebuild npmPackages: babel-preset-expo: 9.0.2 => 9.0.2 expo: ^44.0.6 => 44.0.6 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: eas-cli: 0.51.0 expo-cli: 5.3.2 Expo Workflow: bare
Error output
No response
Reproducible demo or steps to reproduce from a blank project
This is my eas.json:
{
"cli": {
"version": ">= 0.47.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production-ios": {
"ios": {
"image": "latest"
},
"distribution": "store",
"releaseChannel": "production.ios-1.7.1"
}
},
"submit": {
"production": {}
}
}
I queued the build with:
eas build -p ios --profile production-ios
Issue Analytics
- State:
- Created a year ago
- Reactions:15
- Comments:21 (4 by maintainers)
Top Related StackOverflow Question
Answered myself, with a little help from this thread somehow related. So you just have to add “image”: “latest” to the “ios” element in eas.json in the right profile. ex. :
And build with : eas build --platform ios --profile development
(just to do the same with “production” profile (probably))
And the reason is here Latest = 13.3 default = 13.0 !!!
So you need to use upper XCode builder version to build libraries builded with higher versions.
the latest image is now using xcode13.3