不存在已经尝试了大多数解决方案

不存在已经尝试了大多数解决方案

本文介绍了打印:条目,“:CFBundleIdentifier",不存在已经尝试了大多数解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have pretty much tried all the solutions but none of them seem to work.

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",不存在

Print: Entry, ":CFBundleIdentifier", Does Not Exist

你如何让项目运行?

推荐答案

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

My terminal pops out the same message due to deleting some simulators I don't use in Xcode.

如果你不带特定参数运行 react-native run-ios,react-native 将运行默认模拟器,在我的例子中是带有 iOS 10.3.1 的 iPhone 6,我删除了这个模拟器机会.

If you run react-native run-ios with no specific parameters, react-native will run the default simulator which is iPhone 6 with iOS 10.3.1 in my case and I deleted this simulator by chance.

这是我的错误消息:

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"

In order to get rid of these, open up your Xcode and check for available simulators (as same as terminal listed) and run react-native run-ios --simulator="your device name"

就我而言,我运行 react-native run-ios --simulator="iPhone 7",问题解决了.

For my case, I run react-native run-ios --simulator="iPhone 7", the problem solved.

这篇关于打印:条目,“:CFBundleIdentifier",不存在已经尝试了大多数解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 05:41