8

当我尝试在启动的模拟器中安装我的应用程序时,如下所示:

xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app

我得到以下结果:

An error was encountered processing the command (code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.

当我检查 .app 中的 Info.plist 时,CFBundleIdentiifier 在那里并且正确。

<key>CFBundleIdentifier</key>
    <string>com.bar.foo</string>

我在优胜美地使用 xcode 6.3.2

模拟器在安装时启动。

我究竟做错了什么?

4

1 回答 1

3

一切都是错误的道路:

xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app

第一个正斜杠不应该在那里......就这么简单:

xcrun simctl install booted build/iphone/build/Debug-iphonesimulator/foo.app
于 2015-06-18T12:04:00.673 回答