提供所需应用程序包的有效路径.打印:条目,“:CFBundleIdentifier",不存在 [英] Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist

查看:71
本文介绍了提供所需应用程序包的有效路径.打印:条目,“:CFBundleIdentifier",不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

react-native-cli: 1.0.0
react-native: 0.39.2

我克隆了一个 React Native 项目.然后我运行 npm installreact-native run-ios.项目失败并出现以下错误.

I cloned a react native project. Then I ran npm install and then react-native run-ios. The project fails with the below error.

请不要让项目在 xcode 中运行良好.

Please not the project runs fine in xcode.

有什么想法吗?

以下命令产生了分析器问题:

The following commands produced analyzer issues:

Analyze RCTLocationObserver.m

(1 个带有分析器问题的命令)

(1 command with analyzer issues)

以下构建命令失败:CompileC/Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/Objects-normal/x86_64/RCTLinkingManager.o RCTLinkingManager.m normal x86_64Objective-c com.apple.compilers.llvm.clang.1_0.compilerCompileC/Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTGeolocation.build/Debug-iphonesimulator/RCTGeolocation.build/Objects-normal/x86_64/RCTLocationObserver.o RCTLocationObserver.m正常x86_64Objective-c com.apple.compilers.llvm.clang.1_0.compilerCompileC/Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTText.build/Debug-iphonesimulator/RCTText.build/Objects-normal/x86_64/RCTTextManager.o RCTTextManager.m normal x86_64Objective-c com.apple.compilers.llvm.clang.1_0.compiler(3 次失败)

The following build commands failed: CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/Objects-normal/x86_64/RCTLinkingManager.o RCTLinkingManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTGeolocation.build/Debug-iphonesimulator/RCTGeolocation.build/Objects-normal/x86_64/RCTLocationObserver.o RCTLocationObserver.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTText.build/Debug-iphonesimulator/RCTText.build/Objects-normal/x86_64/RCTTextManager.o RCTTextManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (3 failures)

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

Installing build/Build/Products/Debug-iphonesimulator/Safetypin.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/Safetypin.app/Info.plist打印:条目,:CFBundleIdentifier",不存在

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

推荐答案

所以,我遇到了同样的问题 Jordan.react-native run-ios 创建 Products &./ios/build 文件夹中的中间文件夹,但问题是有效路径指向 ./ios/build/Build.我一直在做的是通过发出以下命令在 ./ios/build 中手动创建 Build/文件夹:

So, I had the same problem Jordan. react-native run-ios creates the Products & Intermediates folder in the ./ios/build folder, but the issue is the valid path is pointing to ./ios/build/Build. What I've been doing is I manually create the Build/ folder inside ./ios/build by issuing the command below:

cd ./ios/build
mkdir Build
cd Build

然后,我对文件夹进行符号链接:

then, I symlink the folders:

ln -s ../Products .
ln -s ../Intermediates .

您应该能够让 react-native run-ios 再次工作.

You should be able to get react-native run-ios to work again.

这篇关于提供所需应用程序包的有效路径.打印:条目,“:CFBundleIdentifier",不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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