我刚刚使用他们的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
编辑:
我无法理解,所以我完全重新安装了我的操作系统,一切正常。显然这不是一个解决方案,但觉得值得分享。