Open tientaidev opened 1 year ago
hi! same error here. is there any workaround? this is my react native info:
System: OS: macOS 13.2 CPU: (8) arm64 Apple M1 Memory: 92.88 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2023.01.23.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 28, 29, 30, 31, 32, 33 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0 System Images: android-29 | Google APIs ARM 64 v8a, android-29 | Google Play ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a Android NDK: 23.1.7779620 IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 12.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.1 => 0.71.1 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found info React Native v0.71.3 is now available (your project is running on v0.71.1).
I also have a strage situation, because it works from the terminal, but it fails from Xcode. do you have any suggestions?
thanks
Same error, I just created the app and without any changes, just the starter template I got this error
Yogakit.modulemap not found
I got the same issue with 0.71.3 and xcode Version 14.2 (14C18), mac m1
update: this solution https://github.com/facebook/react-native/issues/29605#issuecomment-695197302 actually helps me. I chose deployment targets of the libraries to the same version as deployment target of my app
cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
YOUR_APP_NAME.xcworkspace
or just open selecting this on xcodeif still not working, try all steps again, but first add this on your Podfile:
# insert this after (post_install do |installer|) and before (react_native_post_install)
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
🔥 I spent one week to solve it. 🩸
- in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
- in your react native root project run
cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
- close the new terminal that has opened
- open your react native root project in finder, and double click to open the
YOUR_APP_NAME.xcworkspace
or just open selecting this on xcode- in xcode PRODUCT>BUILD
if still not working, try all steps again, but first add this on your Podfile:
# insert this after (post_install do |installer|) and before (react_native_post_install) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end
😉 I hope this will work for your, thanks 🇧🇷
awesome
I'm using Fastlane to build, deploy, etc. my app and I had the same issue.
My mistake was that I used the project
instead of the workspace
in the build command.
# ios/Fastfile
build_app(
- project: 'ios/MyAwesomeApp.xcodeproj'.
+ workspace: 'ios/MyAwesomeApp.xcworkspace',
scheme: 'MyAwesomeScheme',
configuration: 'Debug',
export_method: 'development'
)
🔥 I spent one week to solve it. 🩸
- in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
- in your react native root project run
cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
- close the new terminal that has opened
- open your react native root project in finder, and double click to open the
YOUR_APP_NAME.xcworkspace
or just open selecting this on xcode- in xcode PRODUCT>BUILD
if still not working, try all steps again, but first add this on your Podfile:
# insert this after (post_install do |installer|) and before (react_native_post_install) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end
😉 I hope this will work for your, thanks 🇧🇷
thanks , it's work!
🔥 I spent one week to solve it. 🩸
- in xcode PRODUCT>CLEAN BUILD FOLDER, and PRODUCT>CLEAN ALL ISSUES, so close your xcode
- in your react native root project run
cd ios && pod cache clean --all && pod install && cd .. && npx react-native run-ios --configuration Release
- close the new terminal that has opened
- open your react native root project in finder, and double click to open the
YOUR_APP_NAME.xcworkspace
or just open selecting this on xcode- in xcode PRODUCT>BUILD
if still not working, try all steps again, but first add this on your Podfile:
# insert this after (post_install do |installer|) and before (react_native_post_install) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end
😉 I hope this will work for your, thanks 🇧🇷
awesome
this is only solution works for me
e3bmo3ty
I am trying to do product > archive but still not working, I am trying to make the ipa file to deploy, can someone help me plis? I am trying for two weeks this problem.
Are there any other solutions? I still get this error with react-native: 0.71.1/react: 18.2.0
This worked for me, in xcode: Product > Destination > Destination Architectures > Show Rossetta Destinations
any other solutions? I still get this error with react-native: 0.64.2 /react: 18.18.0
no solutions
Description
When reading React native guide to set up environment and try to run on my physical device connected by USB i get this error:
Version
0.71.0
Output of
npx react-native info
Steps to reproduce
After checking that I have ruby and node installed
I run
After that, I open
.xcworkspace
and try to build and run.Snack, code example, screenshot, or link to a repository
It is run on my local machine.