DEV Community

Erdal Turan
Erdal Turan

Posted on

React Native Apple Silicon Common Errors and solutions

Check version

first step: you need your react-native version and information:

npx react-native info

1.Common Error,no bundle url present.
solution
Remove Main.jsbundle, again create main.jsbundle
and then solution following code

npx react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios

2.Common Error, YogaKit Modulemap Error
xcode 11.x,12.x version build fatal error: module map file xxx/Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found

Url: https://github.com/facebook/react-native/issues/28503
Solution
Please check React native Podfile, iPhone model and Xcode iPhone Model

info Launching iPhone 11 (iOS 14.4)
info Building (using "xcodebuild -workspace yourapp.xcworkspace -configuration Debug -scheme your app -destination id=xxx-xx-xx-xxx-xxxx")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening yourapa.xcworkspace. Run CLI with --verbose flag for more details.
Command line invocation:

Top comments (0)