react-native run-ios 失败



  • 初次安装,创建工程,结果运行失败了,失败原因,如下:

        ** BUILD FAILED **
    
     The following commands produced analyzer issues:
    Analyze /Users/cimi/PHZProject/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
    
    Analyze /Users/cimi/PHZProject/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
      (2 commands with analyzer issues)
    
     The following build commands failed:
    PhaseScriptExecution Install\ Third\ Party /Users/cimi/PHZProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
    (1 failure)
    
    Installing build/Build/Products/Debug-iphonesimulator/PHZProject.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/PHZProject.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    

    请问应该如何解决?



  • 是用了最新版本的react-native吧,改成0.44.3就好了



  • 此回复已被删除!


  • @luckykoo 怎么改?要重新安装吗?我是按照一个文档一步一步来操作的


  • administrators

    @KillerPeng 你确定你看过文档?
    0_1500000286733_QQ20170714-104336.png



  • @晴明 嗯,刚注意到后面这些内容,已经解决了,谢谢!


登录后回复