当我尝试在启动的模拟器中安装我的应用程序时,如下所示:
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 时,CFBundleIdentiefier 就在那里并且正确。
<key>CFBundleIdentifier</key>
<string>com.bar.foo</string>
我在 Yosemite 上使用 xcode 6.3.2
模拟器在安装时启动。
我做错了什么?
最佳答案
一切都是错误的道路:
xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app
第一个正斜杠不应该在那里......就这么简单:
xcrun simctl install booted build/iphone/build/Debug-iphonesimulator/foo.app
关于xcode - 在模拟器中安装应用程序时,Simctl install 无法在 .app 中找到 Bundle Identifier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30911904/