Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactCommon Library Error during EAS production build #29004

Open
vintvgx opened this issue May 20, 2024 · 3 comments
Open

ReactCommon Library Error during EAS production build #29004

vintvgx opened this issue May 20, 2024 · 3 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@vintvgx
Copy link

vintvgx commented May 20, 2024

Minimal reproducible example

https://github.com/vintvgx/SCOUT/tree/1.3

What platform(s) does this occur on?

iOS

Did you reproduce this issue in a development build?

Yes

Summary

When I am making an iOS build for my application, using eas, I get a ReactCommon library error during Run Fastlane. These are the steps I use to build my application

npx expo install cd ios rm -rf Pods Podfile.lock pod install eas build --platform ios

Quick snapshot of my error log
`
› Compiling react-native Pods/React-RCTBlob » RCTFileReaderModule.mm
› Compiling react-native Pods/React-RCTBlob » RCTBlobPlugins.mm
› Compiling react-native Pods/React-RCTBlob » RCTBlobManager.mm
› Compiling react-native Pods/React-RCTBlob » RCTBlobCollector.mm
› Compiling react-native Pods/React-RCTAppDelegate » React-RCTAppDelegate-dummy.m

❌ (ios/Pods/Headers/Public/ReactCommon/ReactCommon.modulemap:1:8)

1 | module ReactCommon {
| ^ redefinition of module 'ReactCommon'
2 | umbrella header "ReactCommon-umbrella.h"
3 | exclude header "React-RuntimeApple-umbrella.h"
4 |
› Compiling react-native Pods/React-RCTAppDelegate » RCTRootViewFactory.mm
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » dpdstats/dpdstats » Build Phases » 'Upload Debug Symbols to Sentry'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » dpdstats/dpdstats » Build Phases » '[CP-User] [RNFB] Core Configuration'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ CompileC /Users/expo/Library/Developer/Xcode/DerivedData/dpdstats-ggyyujttprnotvhbcylizismybjt/Build/Intermediates.noindex/ArchiveIntermediates/dpdstats/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-RCTAppDelegate.build/Objects-normal/arm64/React-RCTAppDelegate-dummy.o /Users/expo/workingdir/build/ios/Pods/Target\ Support\ Files/React-RCTAppDelegate/React-RCTAppDelegate-dummy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-RCTAppDelegate' from project 'Pods')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/expo/Library/Developer/Xcode/DerivedData/dpdstats-ggyyujttprnotvhbcylizismybjt/Build/Intermediates.noindex/ArchiveIntermediates/dpdstats/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-RCTAppDelegate.build/Objects-normal/arm64/React-RCTAppDelegate-dummy.o /Users/expo/workingdir/build/ios/Pods/Target\ Support\ Files/React-RCTAppDelegate/React-RCTAppDelegate-dummy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-RCTAppDelegate' from project 'Pods')
(1 failure)

Exit status: 65
+---------------------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.219.0 |
| sdk | iPhoneOS17.4.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.
`

I have dealt with this error before and it was resolved by deleting my podlock and node_modules, reinstalling dependencies and running installing my pods. I have attempted building my application three times after running these steps and I continue to get an error. I also attempted the change that is included within the warning by unchecking "Based on dependency analysis" and I still get a build error. How can I resolve ?

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.2.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - /usr/local/bin/node
npm: 10.2.4 - /usr/local/bin/npm
Managers:
CocoaPods: 1.14.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
IDEs:
Xcode: 15.4/15F31d - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.6 => 51.0.8
react: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
npmGlobalPackages:
eas-cli: 9.0.3
Expo Workflow: bare

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✖ Check for common project setup issues
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check native tooling versions
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK

Detailed check results:

This project has native project folders but also has config plugins, indicating it is configured to use Prebuild. EAS Build will not sync your native configuration if the ios or android folders are present. Add these folders to your .gitignore file if you intend to use prebuild (aka "managed" workflow).

One or more checks failed, indicating possible issues with the project.

@vintvgx vintvgx added the needs validation Issue needs to be validated label May 20, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels May 20, 2024
@seanwagoner
Copy link

having the exact same issue

@JoPoTe
Copy link

JoPoTe commented Jun 4, 2024

If anyone can share how they resolved this that would be beyond amazing!

@yonigold
Copy link

Any solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

5 participants