I am pulling what’s left of my hair out over this. The app works fine in local build and Expo Go but fails when I try to build in Fastlane. The error seems to be here:
Linking XXXX » XXXX
⚠️ ld: duplicate method '+moduleName' in
┌─[category]: ExpoBridgeModule-9f46bb1f370f1411722b8b47d924b6b1.o ExpoModulesCore/libExpoModulesCore.a
└─[class]: ExpoBridgeModule-d9e59fe735ad0bf8314546791789ec15.o ExpoModulesCore/libExpoModulesCore.a
⚠️ ld: method '+UIStatusBarAnimation:' in category from /Users/expo/Library/Developer/Xcode/DerivedData/XXXX-dgxwrycopxcslebavplfhocdycau/Build/Intermediates.noindex/ArchiveIntermediates/XXXX/BuildProductsPath/Release-iphoneos/React-CoreModules/libReact-CoreModules.a(RCTStatusBarManager.o) conflicts with same method from another category
› Generating debug XXXX » XXXX.app.dSYM
› Executing XXXX » Bundle React Native code and images
the transform cache was reset.
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/XXXX-dgxwrycopxcslebavplfhocdycau/Build/Intermediates.noindex/ArchiveIntermediates/XXXX/BuildProductsPath/Release-iphoneos/XXXX.app/main.jsbundle does not exist. This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues
Here is the entire build output (after greppiong out Compiling, EXecuting, Packaging:
Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Detected Values from './Gymfile' |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true |
| clean | false |
| scheme | XXXX |
| configuration | Release |
| export_options | |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/turtle-v2-06b36ce9-c27d-4e25-a53d-4748a5a6a19b.keychain" |
| disable_xcpretty | true |
| buildlog_path | /Users/expo/workingdir/logs |
| output_directory | ./build |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./XXXX.xcworkspace -scheme XXXX -configuration Release
▸ Command line invocation:
▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./XXXX.xcworkspace -scheme XXXX -configuration Release
▸ User defaults from command line:
▸ IDEPackageSupportUseBuiltinSCM = YES
▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
▸ { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
▸ { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
▸ { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
▸ { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
▸ { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
▸ { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
▸ { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
▸ { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
▸ { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
▸ { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./XXXX.xcworkspace -scheme XXXX -configuration Release
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout...
[stderr] 2023-01-13 09:29:14.479 xcodebuild[7280:21563] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[stderr] 2023-01-13 09:29:14.479 xcodebuild[7273:21485] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] 2023-01-13 09:29:17.331 xcodebuild[7307:21705] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
Detected provisioning profile mapping: {:"io.xxxx.xxxxapp"=>"acc02fcb-2179-4d76-8260-0dfa75fcb468"}
+-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Summary for gym 2.210.0 |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace | ./XXXX.xcworkspace |
| scheme | XXXX |
| clean | false |
| output_directory | ./build |
| output_name | XXXX |
| configuration | Release |
| silent | false |
| skip_package_ipa | false |
| skip_package_pkg | false |
| export_options.method | app-store |
| export_options.provisioningProfiles.io.xxxx.xxxxapp | acc02fcb-2179-4d76-8260-0dfa75fcb468 |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/turtle-v2-06b36ce9-c27d-4e25-a53d-4748a5a6a19b.keychain" |
| build_path | /Users/expo/Library/Developer/Xcode/Archives/2023-01-13 |
| result_bundle | false |
| buildlog_path | /Users/expo/workingdir/logs |
| destination | generic/platform=iOS |
| suppress_xcode_output | true |
| xcodebuild_formatter | xcpretty |
| disable_xcpretty | true |
| skip_profile_detection | false |
| xcodebuild_command | xcodebuild |
| skip_package_dependencies_resolution | false |
| disable_package_automatic_updates | false |
| use_system_scm | false |
| xcode_path | /Applications/Xcode.app |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./XXXX.xcworkspace -scheme XXXX -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2023-01-13/XXXX\ 2023-01-13\ 09.29.17.xcarchive archive | tee /Users/expo/workingdir/logs/XXXX-XXXX.log > /dev/null
› Preparing Pods/expo-dev-menu-EXDevMenu » ResourceBundle-EXDevMenu-expo-dev-menu-Info.plist
› Creating Pods/expo-dev-menu-EXDevMenu » EXDevMenu.bundle
› Preparing @stripe/stripe-react-native Pods/StripeUICore-StripeUICore » ResourceBundle-StripeUICore-StripeUICore-Info.plist
› Creating @stripe/stripe-react-native Pods/StripeUICore-StripeUICore » StripeUICore.bundle
› Preparing @stripe/stripe-react-native Pods/StripeFinancialConnections-StripeFinancialConnections » ResourceBundle-StripeFinancialConnections-StripeFinancialConnections-Info.plist
› Preparing @stripe/stripe-react-native Pods/StripeCore-StripeCore » ResourceBundle-StripeCore-StripeCore-Info.plist
› Creating @stripe/stripe-react-native Pods/StripeFinancialConnections-StripeFinancialConnections » StripeFinancialConnections.bundle
› Preparing Pods/Stripe-Stripe3DS2 » ResourceBundle-Stripe3DS2-Stripe-Info.plist
› Creating @stripe/stripe-react-native Pods/StripeCore-StripeCore » StripeCore.bundle
› Preparing @stripe/stripe-react-native Pods/Stripe-Stripe » ResourceBundle-Stripe-Stripe-Info.plist
› Creating Pods/Stripe-Stripe3DS2 » Stripe3DS2.bundle
› Preparing Pods/expo-dev-launcher-EXDevLauncher » ResourceBundle-EXDevLauncher-expo-dev-launcher-Info.plist
› Creating Pods/expo-dev-launcher-EXDevLauncher » EXDevLauncher.bundle
› Creating @stripe/stripe-react-native Pods/Stripe-Stripe » Stripe.bundle
› Preparing react-native Pods/React-Core-AccessibilityResources » ResourceBundle-AccessibilityResources-React-Core-Info.plist
› Creating react-native Pods/React-Core-AccessibilityResources » AccessibilityResources.bundle
› Preparing expo-updates Pods/EXUpdates-EXUpdates » ResourceBundle-EXUpdates-EXUpdates-Info.plist
› Creating expo-updates Pods/EXUpdates-EXUpdates » EXUpdates.bundle
› Preparing expo-constants Pods/EXConstants-EXConstants » ResourceBundle-EXConstants-EXConstants-Info.plist
› Creating expo-constants Pods/EXConstants-EXConstants » EXConstants.bundle
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
category 'Reanimated' does not conform to protocol 'RCTBridgeDelegate' [-Wprotocol]
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
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')
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
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 'XXXX' from project 'XXXX')
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 'XXXX' from project 'XXXX')
Run script build phase 'Upload Debug Symbols to Sentry' 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 'XXXX' from project 'XXXX')
› Preparing XXXX » Info.plist
pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
› Linking XXXX » XXXX
⚠️ ld: duplicate method '+moduleName' in
┌─[category]: ExpoBridgeModule-9f46bb1f370f1411722b8b47d924b6b1.o ExpoModulesCore/libExpoModulesCore.a
└─[class]: ExpoBridgeModule-d9e59fe735ad0bf8314546791789ec15.o ExpoModulesCore/libExpoModulesCore.a
⚠️ ld: method '+UIStatusBarAnimation:' in category from /Users/expo/Library/Developer/Xcode/DerivedData/XXXX-dgxwrycopxcslebavplfhocdycau/Build/Intermediates.noindex/ArchiveIntermediates/XXXX/BuildProductsPath/Release-iphoneos/React-CoreModules/libReact-CoreModules.a(RCTStatusBarManager.o) conflicts with same method from another category
› Generating debug XXXX » XXXX.app.dSYM
the transform cache was reset.
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/XXXX-dgxwrycopxcslebavplfhocdycau/Build/Intermediates.noindex/ArchiveIntermediates/XXXX/BuildProductsPath/Release-iphoneos/XXXX.app/main.jsbundle does not exist. This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues
Run script build phase '[CP-User] Generate app.manifest for expo-updates' 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 'EXUpdates' from project 'Pods')
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/XXXX-dgxwrycopxcslebavplfhocdycau/Build/Intermediates.noindex/ArchiveIntermediates/XXXX/IntermediateBuildFilesPath/XXXX.build/Release-iphoneos/XXXX.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'XXXX' from project 'XXXX')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/XXXX-dgxwrycopxcslebavplfhocdycau/Build/Intermediates.noindex/ArchiveIntermediates/XXXX/IntermediateBuildFilesPath/XXXX.build/Release-iphoneos/XXXX.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'XXXX' from project 'XXXX')
(1 failure)
Exit status: 65
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.210.0 |
| sdk | iPhoneOS16.0.sdk |
+-------------+-------------------------+