-
已安装react-native
-
用“react-native init myproj”创建了一个项目
-
之后我尝试使用“react-native run-ios”来运行项目
它在这里失败,错误如下:
打印:条目,“:CFBundleIdentifier”,不存在/Users/blaze/Desktop/prasa/node_modules/promise/lib/done.js:10 throw err; ^错误:命令失败:/ usr / libexec / PlistBuddy -c打印:CFBundleIdentifier build / Build / Products / Debug-iphonesimulator / prasa.app / Info.plist Print:Entry,“:CFBundleIdentifier”,不存在
有什么建议?
2 回答
删除iOS / build目录
重置iOS模拟器中的内容和设置
它对我有用 .
我用
react-native upgrade
命令解决了这个问题,它帮助我重置了各种xcode文件中的一些细节 . 这解决了这个问题 .