ios跑不起来,一直报下面这个错,大家是遇到是如何解决的?



  • The following build commands failed:
    CompileC /Users/super/Desktop/react/app/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Yoga.build/Objects-normal/x86_64/YGEnums.o /Users/super/Desktop/react/app/node_modules/react-native/ReactCommon/yoga/yoga/YGEnums.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    (1 failure)

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



  • rn4.5及以上的版本都需要一个boost库,而这个库又很难下载全,你需要自己下载一个,并且把boost_1_63_0这个文件夹覆盖到node_modules/react-native/third-party/

    提醒一下,third-party这个文件夹必须编译一次才会有,也就说必须出现你这个错误后才出现的。如果下载不到boost库可以加我QQ31788053,我发你



  • 此回复已被删除!


  • @sdlywwwb 按照你的方法,先替换掉那个包,然后我关掉了控制台,重新执行react-native run-ios 命令,会自动编译后,正常运行



  • 最后还是大致按照这种方式解决
    http://reactnative.cn/blog.html
    在cd ~
    ..rncache 文件目录中 boost_1_63_0.tar.gz folly-2016.09.26.00.tar.gz
    double-conversion-1.1.5.tar.gz glog-0.3.4.tar.gz
    这四个文件都得存在才能编译运行成功,一个都不能少。0_1503973854454_tmp000905cc.png
    0_1503973925818_tmp17ad07c5.png
    0_1503973947722_tmp4853edd2.png



  • @wsuper 在这个目录下,我都有,和你的一摸一样,还是爆楼主的错误,这个问题困扰无数天了,唉!!



  • @optimuszhao 不会吧,你重启了没有,不行的话,把node_modules删掉后在重新装,然后编译,再去检查里面react-native 下的那个third-party 目录里面四个文件夹


登录后回复