Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.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 native 新项目可以';t运行ios:以下生成命令失败:CompileC_React Native - Fatal编程技术网

React native 新项目可以';t运行ios:以下生成命令失败:CompileC

React native 新项目可以';t运行ios:以下生成命令失败:CompileC,react-native,React Native,我只是想开发一个新的react原生应用程序,但运气不好 react native init NewApp cd新应用程序 npm安装 反应本机运行ios 然后查看以下错误: ** BUILD FAILED ** The following build commands failed: CompileC /Users/arc/Desktop/websites-dev/react-native/testing_rn/ios/build/Build/Intermediates/React.b

我只是想开发一个新的react原生应用程序,但运气不好

react native init NewApp cd新应用程序 npm安装 反应本机运行ios

然后查看以下错误:

** BUILD FAILED **

The following build commands failed:
    CompileC /Users/arc/Desktop/websites-dev/react-native/testing_rn/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTProfile.o Profiler/RCTProfile.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

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

npm 4.1.2
node v7.5.0
El Capitan 10.11.6
Xcode 8.2
package.json:

{
    "name": "testing_rn",
    "version": "0.0.1",
    "private": true,
    "scripts": {
        "start": "node node_modules/react-native/local-cli/cli.js start",
        "test": "jest"
    },
    "dependencies": {
        "react": "15.4.2",
        "react-native": "0.42.3"
    },
    "devDependencies": {
        "babel-jest": "19.0.0",
        "babel-preset-react-native": "1.9.1",
        "jest": "19.0.2",
        "react-test-renderer": "15.4.2"
    },
    "jest": {
        "preset": "react-native"
    }
}
似乎这可能与通过终端构建有关,但应用程序可能仍然可以在xcode中工作

github 25天前的问题:

一些相关问题:

=========================================================

更新:

对我来说,这似乎与0.42.0及以上有关。我可以运行安装时使用的0.41.2项目

react-native init --version 0.41.2 example412
cd example412
npm install
react-native run-ios
和繁荣。它起作用了。但这会产生错误:

react-native init example_latest
cd example_latest
npm install
react-native run-ios
然后,上面的错误又回来了。与0.42.0的init版本相同的错误:

react-native init --version 0.42.0 example420
cd example420
npm install
react-native run-ios

对我来说,我想我需要更新xcode。我以为我是8.3,但显然不是。在更新xcode之前,我还需要将osx更新到10.12.4。现在我已经很好了,运行了一个0.42.3的react native init应用程序