gpt4 book ai didi

react-native - 打印 : Entry, ":CFBundleIdentifier",Does Not Exist 尝试过大部分解决方案

转载 作者:行者123 更新时间:2023-12-03 17:38:19 26 4
gpt4 key购买 nike

我几乎尝试了所有解决方案,但似乎没有一个有效。

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/albums.app/Info.plis

打印:条目,“:CFBundleIdentifier”,不存在

你如何让项目运行?

最佳答案

由于删除了一些我不在 Xcode 中使用的模拟器,我的终端会弹出相同的消息。

如果您运行 react-native run-ios在没有特定参数的情况下,react-native 将运行默认模拟器,在我的情况下是 iPhone 6 和 iOS 10.3.1,我偶然删除了这个模拟器。

这是我的错误消息:

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:F3A7BF54-B827-4517-A30D-8B3241C8EBF8 }

Available destinations for the "albums" scheme:
{ platform:iOS Simulator, id:CD64F26B-045A-4E27-B05A-5255924095FB, OS:10.3.1, name:iPad Pro (9.7 inch) }
{ platform:iOS Simulator, id:8FC41950-9E60-4264-B8B6-20E62FAB3BD0, OS:10.3.1, name:iPad Pro (10.5-inch) }
{ platform:iOS Simulator, id:991C8B5F-49E2-4BB7-BBB6-2F5D1776F8D2, OS:10.3.1, name:iPad Pro (12.9 inch) }
{ platform:iOS Simulator, id:B9A80D04-E43F-43E3-9CA5-21137F7C673D, OS:10.3.1, name:iPhone 7 }
{ platform:iOS Simulator, id:58F6514E-185B-4B12-9336-B8A1D4E901F8, OS:10.3.1, name:iPhone 7 Plus }

. . .
Installing build/Build/Products/Debug-iphonesimulator/myapp.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/myapp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

为了摆脱这些,打开你的 Xcode 并检查可用的模拟器(与列出的终端相同)并运行 react-native run-ios --simulator="your device name"
对于我的情况,我运行 react-native run-ios --simulator="iPhone 7" ,问题解决了。

关于react-native - 打印 : Entry, ":CFBundleIdentifier",Does Not Exist 尝试过大部分解决方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42727230/

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