EAS build - Fastlane build failed
See original GitHub issueSummary
I need to use a library not supported by expo, react-native-compressor. So I decided to use a dev client. When I run eas build --profile development --platform ios I get the following error:
› Compiling Pods/Pods-myapp » Pods-myapp-dummy.m
› Packaging Pods/Pods-myapp » libPods-myapp.a
› Executing myapp » [CP] Check Pods Manifest.lock
› Executing myapp » Start Packager on http://localhost:8081
conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'EX_DEV_LAUNCHER_ENABLED=1')
conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'EX_DEV_MENU_ENABLED=1')
› Compiling myapp » noop-file.swift
› Compiling myapp » ExpoModulesProvider.swift
› Copying myapp.swiftmodule/arm64-apple-ios.swiftmodule ➜ myapp.build/Objects-normal/arm64/myapp.swiftmodule
› Copying myapp.swiftmodule/arm64.swiftmodule ➜ myapp.build/Objects-normal/arm64/myapp.swiftmodule
› Copying myapp.swiftmodule/arm64.swiftdoc ➜ myapp.build/Objects-normal/arm64/myapp.swiftdoc
› Copying myapp.swiftmodule/arm64-apple-ios.swiftdoc ➜ myapp.build/Objects-normal/arm64/myapp.swiftdoc
› Copying myapp.build/DerivedSources/myapp-Swift.h ➜ myapp.build/Objects-normal/arm64/myapp-Swift.h
› Compiling myapp » myapp_vers.c
› Compiling myapp » main.m
› Compiling myapp » AppDelegate.m
› Linking myapp » myapp
❌ duplicate symbol '_EXCanAskAgain' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol '_EXExpiresKey' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol '_EXGrantedKey' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol '_EXPermissionExpiresNever' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol '_EXStatusKey' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol 'OBJC_CLASS$_EXPermissionsService' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol 'OBJC_IVAR$_EXPermissionsService._moduleRegistry' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol 'OBJC_IVAR$_EXPermissionsService._requesters' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol 'OBJC_IVAR$_EXPermissionsService._requestersByClass' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol 'OBJC_METACLASS$_EXPermissionsService' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌ duplicate symbol 'OBJC_CLASS$_EXReactNativeUserNotificationCenterProxy' in
┌─ libExpoModulesCore.a(EXReactNativeUserNotificationCenterProxy.o)
└─ UMReactNativeAdapter(EXReactNativeUserNotificationCenterProxy.o)
❌ duplicate symbol 'OBJC_METACLASS$_EXReactNativeUserNotificationCenterProxy' in
┌─ libExpoModulesCore.a(EXReactNativeUserNotificationCenterProxy.o)
└─ UMReactNativeAdapter(EXReactNativeUserNotificationCenterProxy.o)
❌ ld: 12 duplicate symbols for architecture arm64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ Ld /Users/expo/Library/Developer/Xcode/DerivedData/myapp-dotfgulqwgjxhfasrepzetdchukl/Build/Intermediates.noindex/ArchiveIntermediates/myapp/InstallationBuildProductsLocation/Applications/myapp.app/myapp normal (in target 'myapp' from project 'myapp')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/expo/Library/Developer/Xcode/DerivedData/myapp-dotfgulqwgjxhfasrepzetdchukl/Build/Intermediates.noindex/ArchiveIntermediates/myapp/InstallationBuildProductsLocation/Applications/myapp.app/myapp normal (in target 'myapp' from project 'myapp')
(1 failure)
Exit status: 65
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.185.1 |
| sdk | iPhoneOS15.0.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
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Managed or bare workflow? If you have made manual changes inside of the ios/ or android/ directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
iOS
Package versions
{
"name": "my-app",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@hookform/resolvers": "^2.8.8",
"@react-navigation/bottom-tabs": "^6.0.9",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"axios": "^0.25.0",
"expo": "~44.0.0",
"expo-av": "^10.2.0",
"expo-camera": "~12.1.0",
"expo-dev-client": "~0.8.2",
"expo-image-picker": "^12.0.1",
"expo-secure-store": "~11.1.0",
"expo-splash-screen": "~0.14.1",
"expo-status-bar": "~1.2.0",
"fiction-expo-restart": "^1.1.2",
"firebase": "9.0.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-hook-form": "^7.24.2",
"react-native": "0.64.3",
"react-native-compressor": "^1.5.0",
"react-native-emoji": "^1.8.0",
"react-native-gesture-handler": "~2.1.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-mask-input": "^1.1.1",
"react-native-modal": "^13.0.0",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.10.1",
"react-native-searchable-dropdown": "^1.1.3",
"react-native-svg": "12.1.1",
"react-native-swipe-gestures": "^1.0.5",
"react-native-web": "0.17.1",
"styled-components": "^5.3.3",
"yup": "^0.32.11"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@types/react": "~17.0.21",
"@types/react-native": "~0.64.12",
"typescript": "~4.3.5"
},
"private": true,
"resolutions": {
"styled-components": "^5"
}
}
Environment
Expo CLI 5.0.1 environment info: System: OS: macOS 11.6.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v14.16.0/bin/yarn npm: 8.3.0 - ~/.nvm/versions/node/v14.16.0/bin/npm Managers: CocoaPods: 1.11.2 - /Users/marcuscoelho/.rvm/gems/ruby-2.7.4/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 IDEs: Xcode: 12.5/12E262 - /usr/bin/xcodebuild npmPackages: expo: ~44.0.0 => 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.46.0 expo-cli: 5.0.1 Expo Workflow: managed
Reproducible demo
expo init include all libs on my package.json yarn install eas build --profile development --platform ios
Stacktrace (if a crash is involved)
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:15
Top Related StackOverflow Question
It is
expo-image-pickerfor me.agreed with @parkerproject, how did you do your root cause analysis? try and error with all libs in a project doesn’t sound like a solution