我刚刚使用他们的 CLI 界面创建了一个新的 React Native 应用程序,但在没有进行任何更改的情况下它失败了。当我尝试使用时我第一次注意到这一点version 0.45.1
,它似乎仍然发生在version 0.46.1
我当前的版本是通过 CLI 安装的。
"react": "16.0.0-alpha.12"
"react-native": "0.46.1"
上次我能够成功运行应用程序的时间是重新启动的version 0.44.3
我尝试过跑步
watchman watch-del-all
rm -rf node_modules
rm -rf $TMPDIR/react-*
npm install
但这没有帮助。完整的错误消息如下。
CompileC /Users/brianclarke/Documents/development/ShitProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o /Users/brianclarke/Documents/development/ShitProject/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/ShitProject.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ShitProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
EDIT:
我无法弄清楚,所以我完全重新安装了操作系统,一切正常。显然这不是解决办法,但觉得值得分享。