react-native run-ios 出错
来源:4-1 升级 React Native 之重要补录 1-一期答疑总结
不羁的豆角
2017-09-13
react-native-cli: 1.0.0
node : 6.9.0
mac 版本: macOS Sierra (10.12.6)
终端错误信息:
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze /Users/shixinglong/sxl/test/firstApp3/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/shixinglong/sxl/test/firstApp3/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/shixinglong/sxl/test/firstApp3/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/firstApp3.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/firstApp3.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
大概过程:
之前是好的,后来电脑重装了系统就不行了。我尝试了好多react-native版本 都不行,
2回答
-
不羁的豆角
提问者
2017-09-14
找到 答案了,是因为版本 高于 0.45 版本以上的需要 boost 编译,目前可以先使用0.44版本
react-native init MyApp --version 0.44.3
10 -
Scott
2017-09-13
xcode 有没有升级到最新,然后启动一下 xcode 之后,到命令行输入下
xcode-select --install
试试看有没有安装成功,之后再重新跑一下看看
012017-09-13
相似问题