-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Fresh install - build fails on M1 Mac #31438
Comments
Did you find any solution ? Facing same issue. |
Having same issue after updating macOS (11.3 (20E232)) on M1. My project was working fine before update and now am seeing lots of these error while building app for iOS and not able to run it. The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'Flipper-Glog' from project 'Pods'). Have tried all solutions like these CocoaPods/CocoaPods#9884 but no luck. |
I ended up getting my app to build by using Rosetta2 for everything. I opened the terminal using Rosetta2, deleted the node_modules directory, deleted Pods directory, deleted podfile.lock. Then ran I guess that software packages still haven't caught up to be compatible with M1 chips, so for now Rosetta2 is the solution. |
Thank you so much for the help, I have managed to run the app with above steps. I have tried the same steps before but the order was a bit different. Steps I followed to fix the problem.
it worked. |
Yeah, facing the same issue. Commenting |
Facing the same issue, I hope it get resolved soon because don't really want to do without flipper... |
I was able to run the project by commenting the use_flipper line in the Podfile and also by removing the Library Search Paths in the project, I don't know how It could impact deleting those properties but for now the project is running without any issues and the linking warnings are completely gone. |
^ Facing the same issue (already commented use_flipper()), My guess is maybe it's because of XCode 12.5 |
@tintheanh Try removing the LIBRARY_SEARCH_PATHS from the Xcode project. After that I will run in M1 Macs. |
I also experienced same issue before. But, Now i can compile and build react native run-ios sucessfully. Quick step:
full guide in this article: https://handi.dev/blog/how-run-react-native-on-macbook-m1-apple-silicon |
Running XCode in Rosetta now solves the issue for me |
Nope, turns out I was looking at the info for a random |
https://handi.dev/blog/how-run-react-native-on-macbook-m1-apple-silicon |
hey folks, I don't have an M1 machine so I can't really help with this, but I found in another issue this guide by @aiba linked https://github.com/aiba/react-native-m1, and I was wondering if anyone could test those steps and let the rest of us know if they work |
hey folks, following up on this; we've created a troubleshooting guide with what we think is the best approach to solve the build issue for M1 -> #31941 please check it out and let us know if it works for you |
try |
Description
If I try build a fresh RN app for iOS, I get linking errors.
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
There are also about 23 errors, all related to not being able to find these libraries
Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral
React Native version:
System:
OS: macOS 11.2.3
CPU: (8) arm64 Apple M1
Memory: 578.42 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.0.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.10.0 - /opt/homebrew/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
Expected Results
The app should build and run on the iOS emulator
The text was updated successfully, but these errors were encountered: