react-native run-ios时出现的问题



  • ** BUILD FAILED **

    The following commands produced analyzer issues:
    Analyze /Users/zhouyong/AwesomeProject/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c

    Analyze /Users/zhouyong/AwesomeProject/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
    

    (2 commands with analyzer issues)

    The following build commands failed:
    PhaseScriptExecution Install\ Third\ Party /Users/zhouyong/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
    (1 failure)

    Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.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/AwesomeProject.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist



  • 你检查一下你的iOS项目的包名是不是没有写

    0_1497274838095_QQ20170612-213948@2x.png



  • @HermitCarb 谢谢你,这里我是有写的0_1497315687616_image.png 0_1497315715004_image.png



  • 你直接用Xcode在模拟器上运行看看报什么错。



  • 0_1497319755839_image.png ![0_1497320111085_image.png](正在上传 100%)



  • 呃,代码发1004360117#qq.com邮箱我明天看一下吧,这样交流效率太低了。



  • 此回复已被删除!


  • @HermitCarb 也遇到了同样的问题,请问是什么原因?



  • 我也有这样的问题,现在解决了吗?



  • 此回复已被删除!


  • @RazerTang 你们是在哪下载的代码?还是自己初始化的代码?



  • 没有下载代码,就是新建项目之后打不开,然后我用Xcode打开就有这样的错误



  • 我也遇到这样的问题,之前开发还好好的,这几天更新了xcode,node就新建项目就一直卡在这个问题,崩溃中



  • 0_1497506395600_image.png



  • The following commands produced analyzer issues:

    Analyze /Users/zhouyong/AwesomeProject/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
    Analyze /Users/zhouyong/AwesomeProject/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
    

    (2 commands with analyzer issues)

    The following build commands failed:
    PhaseScriptExecution Install\ Third\ Party /Users/zhouyong/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
    (1 failure)

    Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.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/AwesomeProject.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist





  • 不要直接使用 react-native init ProjectName 创建项目,
    后面加个 --version 0.45.0 之前的版本就好了,
    比如:
    react-native init ProjectName --version 0.44.0



  • @Dzhijian 你好根据您的提示 我这边运行起来了 万分感谢



  • @Dzhijian 说:

    react-native init ProjectName --version 0.44.0
    感谢我运行起来了



  • 此回复已被删除!

登录后回复