簡體   English   中英

React Native無法構建示例項目(XCode 8.1 / Sierra)

[英]React Native can't build the sample project (XCode 8.1 / Sierra)

我剛剛嘗試為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上運行的所有進程localhost:8081

編輯:我通過下載舊的ios 8.1模擬器並在Xcode中手動設置來使其工作:

將模擬器設置為ios 8.1

您必須使用xCode打開該項目,並在general選項卡中檢查是否設置了Bundle Identifier (如果未編寫com.myawesomeproject類的com.myawesomeproject

在此處輸入圖片說明

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM