Hey,
since Friday, my application which hasn’t a lot of changes started to fail while building for both platforms and I can’t understand why. At first moment, I thought the problem was with Sentry or even with my old Expo SDK 44, then I removed the Sentry and also updated Expo to the last SDK (46). But the build is still failing. For Android I have the following output:
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:bundleReleaseJsAndAssets'.
[stderr] > Process 'command 'node'' finished with non-zero exit value 1
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
as I’m running Managed Workflow, I’m not sure I can run any of those commands to try to debug and find what is wrong with the build. I have also looked inside Expo Github Issues, forums, etc. to find similar issues, but all of them are mostly with Bare Workflows, where there’s the ability to run commands like the ones described above.
And for iOS I have the following log:
Linking APPNAME » APPNAME
⚠️ ld: duplicate method '+moduleName' in
┌─[category]: ExpoBridgeModule-50a46173201b1121a2100c49cf582c20.o ExpoModulesCore/libExpoModulesCore.a
└─[class]: ExpoBridgeModule-2de9594b30931e4893254d49dade0484.o ExpoModulesCore/libExpoModulesCore.a
⚠️ ld: method '+UIStatusBarAnimation:' in category from /Users/expo/Library/Developer/Xcode/DerivedData/APPNAME-gmkdeoikqirzrbewiqaabcqzcvkh/Build/Intermediates.noindex/ArchiveIntermediates/APPNAME/BuildProductsPath/Release-iphoneos/React-CoreModules/libReact-CoreModules.a(RCTStatusBarManager.o) conflicts with same method from another category
› Copying ios/APPNAME/Supporting/Expo.plist ➜ ./Expo.plist
› Compiling APPNAME » SplashScreen.storyboard
› Preparing APPNAME » Info.plist
› Generating debug APPNAME » APPNAME.app.dSYM
› Executing APPNAME » Bundle React Native code and images
the transform cache was reset.
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/APPNAME-gmkdeoikqirzrbewiqaabcqzcvkh/Build/Intermediates.noindex/ArchiveIntermediates/APPNAME/BuildProductsPath/Release-iphoneos/APPNAME.app/main.jsbundle does not exist. This must be a bug with
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/APPNAME-gmkdeoikqirzrbewiqaabcqzcvkh/Build/Intermediates.noindex/ArchiveIntermediates/APPNAME/IntermediateBuildFilesPath/APPNAME.build/Release-iphoneos/APPNAME.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'APPNAME' from project 'APPNAME')
▸ (1 failure)
2022-10-31 06:54:12.802 xcodebuild[4244:12699] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-10-31 06:54:12.803 xcodebuild[4244:12699] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-10-31 06:54:12.896 xcodebuild[4244:12699] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2022-10-31 06:54:12.896 xcodebuild[4244:12699] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2022-10-31 06:54:12.897 xcodebuild[4244:12699] XType: unable to make a connection to the font daemon!
2022-10-31 06:54:12.897 xcodebuild[4244:12699] XType: XTFontStaticRegistry is enabled as fontd is not available.
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/APPNAME-gmkdeoikqirzrbewiqaabcqzcvkh/Build/Intermediates.noindex/ArchiveIntermediates/APPNAME/IntermediateBuildFilesPath/APPNAME.build/Release-iphoneos/APPNAME.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'APPNAME' from project 'APPNAME')
(1 failure)
Exit status: 65
Same thing on iOS, I have found similar issues, but almost all of them give some hint using Bare Workflows.
Any idea how I could fix this? The only thing I did to my code was to install 2 new libraries (which were installed using expo install
, those libraries are compatible with Expo. And then I have just created new components, etc.
Thanks!