日志:
Scanning folders for symlinks in /Users/../../../__app__/node_modules
Found Xcode workspace Name.xcworkspace
CoreData: annotation: Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
Could not find iPhone 6 simulator
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! AppName@10.0.17 start:ios: `react-native run-ios && react-native log-ios`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the AppName@10.0.17 start:ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/../.npm/_logs/2019-11-19T11_21_06_483Z-debug.log
在此处进行了检查:https://github.com/react-native-community/cli/issues/739,但我不确定这是否是我的确切问题。
从这里开始使用本机入门https://facebook.github.io/react-native/docs/getting-started.html
试图为GitHub上的另一个应用设置环境,我正在研究并遇到了一些问题。
我已经采取的步骤(在ios上运行)。
sudo gem install -n /usr/local/bin cocoapods
cd ios && pod install
现在,当我尝试使用以下命令运行仿真器时:npm run start:ios
使用以下脚本:react-native run-ios && react-native log-ios
中的package.json
尝试执行所有这些操作时,Xcode已关闭。