我刚刚尝试为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-native-versions
"react": "15.3.2",
"react-native": "0.36.0"
我还杀死了localhost:8081
编辑:我通过下载旧的ios 8.1模拟器并在Xcode中手动设置来实现它:
答案 0 :(得分:1)
您必须使用xCode
打开此项目并检查general
标签是否设置了Bundle Identifier
(如果没有写com.myawesomeproject
)
答案 1 :(得分:0)
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