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

1
0

Scott

2017-09-13

xcode 有没有升级到最新,然后启动一下 xcode 之后,到命令行输入下

xcode-select --install

试试看有没有安装成功,之后再重新跑一下看看

0
1
不羁的豆角
xcode 是最新的版本,8.3.3 而且执行 xcode-select --install 之后也是会抛出 “command line tools are already installed, use "Software Update" to install updates” 这个异常的。这说明已经 安装好了。但是 react-native run-ios 还是有错。 The following build commands failed: Ld build/Build/Products/Debug-iphonesimulator/imoocApp.app/imoocApp normal x86_64 (1 failure) Installing build/Build/Products/Debug-iphonesimulator/imoocApp.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application The bundle identifier of the application could not be determined. Ensure that the application's Info.plist contains a value for CFBundleIdentifier. Print: Entry, ":CFBundleIdentifier", Does Not Exist Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/imoocApp.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist
2017-09-13
共1条回复

贯穿全栈React Native开发App

全面掌握React Native技术,不止步前端开发,让你移动领域大放光彩

946 学习 · 385 问题

查看课程