gpt4 book ai didi

react-native - 提供所需应用程序包的有效路径。打印 : Entry, ":CFBundleIdentifier",不存在

转载 作者:行者123 更新时间:2023-12-02 20:53:53 26 4
gpt4 key购买 nike

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

我克隆了一个 React Native 项目。然后我运行npm install,然后运行react-native run-ios。该项目因以下错误而失败。

Please not the project runs fine in xcode.

有什么想法吗?

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

Analyze RCTLocationObserver.m

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

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)

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

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

最佳答案

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

cd ./ios/build
mkdir Build
cd Build

然后,我对文件夹进行符号链接(symbolic link):

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

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

关于react-native - 提供所需应用程序包的有效路径。打印 : Entry, ":CFBundleIdentifier",不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41133567/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com