繁体   English   中英

React-native run-ios命令失败

[英]React-native run-ios commands fails

/ Users / tnex-mac6 / Desktop / React Native Projects / ReactDemoNavigation / node_modules / react-native / React / Base / RCTUtils.m:255:6:注意:“ RCTExecuteOnMainThread”已在此处明确标记为已弃用void RCTExecuteOnMainThread(dispatch_block_t块, BOOL同步)^

**建立失败**

以下构建命令失败: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,代码= 2):无法安装请求的应用程序在提供的路径中找不到应用程序包。 提供指向所需应用程序捆绑包的有效路径。 打印:条目“:CFBundleIdentifier”不存在

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

在尝试升级之前,错误指出CFBundleIdentifier不存在,您是否进行过检查?

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

在大多数情况下,这可以解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM