简体   繁体   中英

How to fix app crashing on IOS devices react-native

I am building for first time an React - Native Application . Until now we have tested the application on the several Android devices and no problem has been detected . But when the application is runned on Ios devices it crashesh almost instantly . So my question is am i doing something wrong ? I followed up the documentetion from the react-native web page and i have done the right installs , but still the problem occurs . Also when i try to build up an Android or IOS simultaor with the command :

  • react-native run-android
    • react-native run-ios

It throws me an error : Android project not found. Maybe run react-native android first?

Or for Ios : iOS project folder not found. Are you sure this is a React Native project?

Error: iOS project folder not found. Are you sure this is a React Native project?

My folder looks like this :

在此处输入图片说明

Am i missing something that should be installed ? Can you givev me some hints ? Thank you !

PandaMastr, the example image indicates that this an expo react native application, to run it you will need to go the root folder and run npm start which will launch the application. In order to use the react-native run commands you would need to eject the application ( always make a backup so you can revert if need be ); which would then create the android and iOS folder and install the react-native run aspects you are attempting to use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM