【问题标题】:React Native can't build the sample project (XCode 8.1 / Sierra)React Native 无法构建示例项目(XCode 8.1 / Sierra)
【发布时间】:2016-10-30 14:45:37
【问题描述】:

我刚刚尝试为 React-Native 构建示例项目,但出现以下错误:

The following build commands failed:
    Libtool /Users/computerName/project/react-native/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTSettings.a normal x86_64
    Libtool /Users/computerName/project/react-native/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTVibration.a normal x86_64
    Libtool /Users/computerName/project/react-native/AwesomeProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTLinking.a normal x86_64
(3 failures)
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app
No devices are booted.
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

我已尝试删除 node_modules 并重新安装。

我正在运行以下 react 和 react-native-versions

"react": "15.3.2",
"react-native": "0.36.0"

我还杀死了在localhost:8081上运行的所有进程

编辑:我通过下载旧的 ios 8.1 模拟器并在 Xcode 中手动设置它来工作:

【问题讨论】:

    标签: ios xcode react-native


    【解决方案1】:

    如果设置了Bundle Identifier,则必须使用xCode 打开此项目并签入general 选项卡(如果不写类似com.myawesomeproject 的内容)

    【讨论】:

    • 它被设置为 $(PRODUCT_BUNDLE_IDENTIFIER)
    【解决方案2】:
    ANISHs-MacBook-Air:watchman anishsnair$ ./autogen.sh 
    ./autogen.sh: line 9: aclocal: command not found
    ./autogen.sh: line 10: autoheader: command not found
    ./autogen.sh: line 11: automake: command not found
    ./autogen.sh: line 12: autoconf: command not found
    

    【讨论】:

    • 请提供一些解释/上下文,因为这会使答案对其他人更有用。
    猜你喜欢
    • 1970-01-01
    • 2018-09-01
    • 1970-01-01
    • 2016-07-12
    • 1970-01-01
    • 2019-12-03
    • 2022-09-30
    • 1970-01-01
    • 2019-09-10
    相关资源
    最近更新 更多