Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React本机启动项目IOS生成失败_Ios_Xcode_React Native_Build - Fatal编程技术网

React本机启动项目IOS生成失败

React本机启动项目IOS生成失败,ios,xcode,react-native,build,Ios,Xcode,React Native,Build,创建第一个React本机项目(AwesomeProject)时,我遇到以下错误。我已经在Android上运行了这个项目,它正在按预期工作。请找到附件中的快照,并指导我IOS出现了什么问题 我在使用Xcode 8时出错,我还将Xcode更新为9.0和Node等。。但什么都没有得到解决,所有的错误都和我从一开始就得到的一样 ** BUILD FAILED ** The following build commands failed: CompileC /Users/clines29

创建第一个React本机项目(AwesomeProject)时,我遇到以下错误。我已经在Android上运行了这个项目,它正在按预期工作。请找到附件中的快照,并指导我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
附件:

版本:
Xcode:9.0
节点:v8.6.0
自制:1.3.5
看守员:4.9.0
react native cli:2.0.1
反应本机:0.49.3

npm:5.3.0

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

或者如果您仍然想使用xcode 9 试试这个


我在下面提到的链接上找到了这个解决方案:

react native init[PROJECT_NAME]--版本0.44.0

这是C编译器的问题

打开xcode,选择构建设置>构建选项,
那么启用c编译器对我有效。

谢谢,但这不起作用!与上述问题相同。
rm -r ~/.rncache/
cd node_modules/react-native/third-party/glog-0.3.4/
./configure --host arm-apple-darwin