Simctl install can't find Bundle Identifier in .app when installing app in simulator
Asked Answered
C

1

8

When I try to install my app in the booted simulator, like this:

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

I get the following result:

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.

When I inspect the Info.plist inside the .app, the CFBundleIdentiefier is there and correct.

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

I am using xcode 6.3.2 on Yosemite

The simulator is booted at installation time.

What am I doing wrong?

Chev answered 18/6, 2015 at 9:43 Comment(0)
C
3

All it was, was a wrong path:

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

The first forward slash shouldn't be there... as simple as that:

xcrun simctl install booted build/iphone/build/Debug-iphonesimulator/foo.app
Chev answered 18/6, 2015 at 12:4 Comment(3)
I should probably make the error message a bit better for that case. Please file a radar at bugreport.apple.comBadger
Filed under bug nr: 21456832Chev
Got report that it was fixed in upcoming version of XC, but have not been able to verify yet.Chev

© 2022 - 2024 — McMap. All rights reserved.