在模拟器中安装应用程序时,Simctl install 无法在 .app 中找到 Bundle Identifier
Simctl install can't find Bundle Identifier in .app when installing app in simulator
当我尝试在启动的模拟器中安装我的应用程序时,如下所示:
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
当我尝试在启动的模拟器中安装我的应用程序时,如下所示:
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