首页 文章

React-native run-ios命令失败

提问于
浏览
0

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

建筑失败

以下构建命令失败: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 Print:Entry,“:CFBundleIdentifier”,不存在

1 回答

  • -1

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

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

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

相关问题