解决:React Native获取启动项目IOS版本失败

问题描述:

我是React Native的新手。我不知道IOS的发展。我在创建第一个项目时遇到以下错误(AwesomeProject)。我已经在Android上运行此项目,并且按预期工作。请查找附件快照并指导我IOS出了什么问题。解决:React Native获取启动项目IOS版本失败

我在使用Xcode 8时遇到错误我也更新了我的Xcode 9.0和Node等。但没有得到任何工作,所有错误都与我从开始以来一样。

** BUILD FAILED ** 

The following build commands failed: 
     CompileC /Users/clines291/RNProjects/AwesomeProject/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o/Users/clines291/RNProjects/AwesomeProject/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 
     CompileC /Users/clines291/RNProjects/AwesomeProject/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/StringBase.o /Users/clines291/RNProjects/AwesomeProject/node_modules/react-native/third-party/folly-2016.09.26.00/folly/StringBase.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler 
(2 failures) 

Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.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/AwesomeProject.app/Info.plist 
Print: Entry, ":CFBundleIdentifier", Does Not Exist 

附件:
Visual Code build failed error
Xcode build failed errors

版本:
的XCode:9.0
节点:V8.6.0
自制:1.3.5
柝:4.9。 0
反应母语-CLI:2.0.1
反应母语:0.49.3
NPM:5.3.0

预先感谢您!

您是否尝试过使用xcode 8而不是xcode 9?

,或者如果你仍然想使用Xcode的9 试试这个

rm -r ~/.rncache/ 
cd node_modules/react-native/third-party/glog-0.3.4/ 
./configure --host arm-apple-darwin 
+0

谢谢,但这不行糟透了!与上述相同的问题。 – John


我发现下面提及链接此解决方案:
https://github.com/facebook/react-native/issues/14368
反应本土的init [PROJECT_NAME ] --version 0.44.0