简体   繁体   中英

React Native Project Running from Xcode but not from command line

I'm hitting a production breaking bug and the solution seems elusive, but tantalisingly close.

That odd thing is, the app runs on the simulator if I run from Xcode (With the play button), but when I run react-native run-ios it brings up the simulator and shows the splash screen, but then immediately fails out, with little to go on in the logs. I suspect something is not getting included when the app is run from command line that is included when run from xcode.

Can anyone with a better understanding of ios dev suggest any pointers?

I had the same issue. Open Info.plist with notepad (not XCode) and look for errors. If you don't find any, try restarting XCode or your mac and do a clean build.

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