React-native run-ios 命令失败 [英] React-native run-ios commands fails

查看:39
本文介绍了React-native run-ios 命令失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/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 同步)^

/Users/tnex-mac6/Desktop/React Native Projects/ReactDemoNavigation/node_modules/react-native/React/Base/RCTUtils.m:255:6: note: 'RCTExecuteOnMainThread' has been explicitly marked deprecated here 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 目标-c com.apple.compilers.llvm.clang.1_0.compiler(1 次失败)

The following build commands failed: 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 normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

安装 build/Build/Products/Debug-iphonesimulator/ReactDemoNavigation.app处理命令时遇到错误(域=NSPOSIXErrorDomain,代码=2):未能安装请求的应用程序在提供的路径中找不到应用程序包.提供所需应用程序包的有效路径.打印:条目,:CFBundleIdentifier",不存在

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

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

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactDemoNavigation.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist

推荐答案

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

Before you try an upgrade, the error states that the CFBundleIdentifier doesn't exist, did you sanity check that?

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

to upgrade your version of react-native do the following: Open your terminal, go to your react-native project folder and do a react-native upgrade.

大多数时候这可以解决问题.

Most of the times this solves the problem.

这篇关于React-native run-ios 命令失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆