React-native run-ios命令失败

时间:2017-01-16 13:06:59

标签: ios react-native

/ Users / tnex-mac6 / Desktop / React Native Projects / ReactDemoNavigation / node_modules / react-native / React / Base / RCTUtils.m:255:6:注意:'RCTExecuteOnMainThread'已明确标记为已弃用 void RCTExecuteOnMainThread(dispatch_block_t block,BOOL sync)      ^

**建筑失败**

以下构建命令失败:     CompileC / Users / tnex-mac6 / Desktop / React \ Native \ Projects / ReactDemoNavigation / ios / Build / Intermediates / React.build / Debug-iphonesimulator / React.build / Objects-normal / x86_64 / RCTPlatform.o Base / RCTPlatform.m普通的x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1失败)

安装build / Build / Products / Debug-iphonesimulator / ReactDemoNavigation.app 处理命令时遇到错误(domain = NSPOSIXErrorDomain,code = 2): 无法安装所请求的应用程序 在提供的路径中找不到应用程序包。 提供所需应用程序包的有效路径。 打印:输入,“:CFBundleIdentifier”,不存在

命令失败:/ usr / libexec / PlistBuddy -c打印:CFBundleIdentifier build / Build / Products / Debug-iphonesimulator / ReactDemoNavigation.app / Info.plist 打印:输入,“:CFBundleIdentifier”,不存在

1 个答案:

答案 0 :(得分:-1)

在您尝试升级之前,错误表明CFBundleIdentifier不存在,您是否理智检查了?

升级您的react-native版本执行以下操作: 打开终端,转到您的react-native项目文件夹并执行操作 react-native upgrade

大多数时候,这解决了这个问题。

相关问题