请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

react-native run-ios 出错

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版本 都不行,

正在回答 回答被采纳积分+3

2回答

提问者 不羁的豆角 2017-09-14 14:07:48

找到 答案了,是因为版本 高于 0.45 版本以上的需要 boost 编译,目前可以先使用0.44版本  

react-native init MyApp --version 0.44.3

1 回复 有任何疑惑可以回复我~
Scott 2017-09-13 20:59:59

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 21:11:34
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信