刚刚初始化的项目init后iOS跑不起来



  • ios编译就报React/RCTBundleURLProvider.h' file not found咋整



  • 我也遇到了同样问题,在网上找好长时间这个错算是解决了。
    1。In xcode choose project root.
    2。Drag React.xcodeproj from Libraries to the root of the project.
    3。Click on project name (in my case it name SaleKit) in TARGETS
    4。Choose Build Phases
    5。In dropdown of Target Dependencies add React

    原文地址:
    https://stackoverflow.com/questions/40368211/rctbundleurlprovider-h-file-not-found-appdelegate-m

    但是我解决了这个问题又出现另外一个问题。你看是否也会出现以下的问题:
    ** BUILD FAILED **
    The following build commands failed:
    CompileC /Users/wen/wspace/GFAPP/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o /Users/wen/wspace/GFAPP/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

    (1 failure)

    Installing build/Build/Products/Debug-iphonesimulator/GFAPP.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

    Rebuild or re-run



  • nodemodel 出问题了 换老项目的就可以了



  • 一样的问题,尴尬,烦



  • 请教一下,你这边解决了吗?



  • 新版本有问题
    新建项目指定版本:
    用--version参数创建指定版本的项目。例如react-native init DemoApp --version 0.44.3注意版本号必须精确到两个小数点。
    项目创建好之后:执行:react-native run-ios



  • 0_1499827120848_image.png

    issue地址: issue

    找到如图所示的回复,翻墙下载文件,替换 .rncache 里面的文件,然后删除 react native 文件夹下的 third-party 文件夹下的所有内容, clean -》 rebuild


登录后回复