Common issues in React native

Error 1: 
Could not debug. Error while executing command '/node_modules/.bin/react-native run-ios --simulator --no-packager --verbose': Error while executing command '/node_modules/.bin/react-native run-ios --simulator --no-packager --verbose' (error code 101)

React-native -run-ios error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65

Solution : I've got the same error when run

$ react-native run-ios

My workaround steps:

open project by Xcode and choose the signature information as the attached image.
clear build folder: 'Your Project'/ios/build
$ react-native run-ios

Hope this help

Error 2 :
react-native run-ios doesn't run: Application is unknown to FrontBoard?
Solution : Try with another simulator if it works you need to reset your simulator from simulator menu

Simulator -> Reset Content And Setting if you have Xcode 9 it will be from Hardware -> Erase All Content and Settings
clean from Xcode menu Product -> Clean and run your project

Error 3 :
React Native Accessing view manager configs directly off UIManager via UIManager['AIRMap'] is no longer supported (UI is not clickable) 
Solution : This is fixed by downgrading "react-native-gesture-handler" to 1.3.0. You also need to clear the cache or you'll continue to see the warning.
Modify your package.json:
"react-native-gesture-handler": "~1.3.0"

Error 4 :
Axios doesn't work with Android (emulator) raising a Network Error #973
Solution : add this to android manifest file
<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s