-
Notifications
You must be signed in to change notification settings - Fork 24.6k
iOS build fails with "_main" undefined for architecture x86_64 after upgrading to React Native 0.78 #50617
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
Comments
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.78.2. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
Note Not a bug report: This issue looks like a question. We are using GitHub issues exclusively to track bugs in React Native. GitHub may not be the ideal place to ask a question, but you can try asking over on Stack Overflow, or on Reactiflux. |
We sadly can't help without a proper reproducer or without seeing your code |
@cortinico No problem. I'm not sure if this has been written in the doc or somewhere. Yet, I just want to share that I have just figured it out and get this worked by adding "AppDelegate.swift" file into XCode project. Not sure if it's Xcode cache or bug. I've found out this when I initiate a new RN0.78 project running on XCode. |
+1 |
I'm getting this error
|
Did you get the answer? |
Please share the solution |
No not yet. |
I have found the problem.. |
@avinashkumar0808 Thanks a lot Bro!!! |
Description
I'm upgrading a React Native project from 0.68.6 to 0.78.0 and followed all steps on React Native Upgrade Helper.
✅ yarn install and pod install both complete successfully.
❌ But when I try to build the iOS project in Xcode, it fails with the following error:
🔍 My assumption: it might be failing to find the correct entry point of the app (@main or AppDelegate.swift misconfiguration?).
Environment:
I’d appreciate help from anyone who’s dealt with similar iOS build issues during a major React Native upgrade. Happy to share more config if needed. Thanks!
Steps to reproduce
React Native Version
0.78.0
Affected Platforms
Build - MacOS, Runtime - iOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
Unfortunately, I cannot share the company’s private repo, but I’ve followed the official Upgrade Helper strictly from 0.68 to 0.78.
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: