tags:

views:

131

answers:

1

I created an iPhone OS 2.2 app some time ago and recently installed the 3.1 SDK.

When I try to run my app on my (3.1) iPod Touch, the launch window says "Error from Debugger: Error launching remote program: security policy error."

Viewing the iPod Touch's Console (via the Console tab for my device in Xcode's Organizer) shows:

Wed Feb  3 23:29:17 unknown SpringBoard[24] <Warning>: Unable to launch com.blahblah.Blah_Blah because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Wed Feb  3 23:29:17 unknown com.apple.debugserver-43[789] <Error>: error: unable to launch the application with CFBundleIdentifier 'com.blahblah.Blah_Blah' sbs_error = 9

I already sifted through a bunch of code-signing issues just to get it to build and deploy, so I think this might be something else.

A: 

The problem turned out to be spaces in the executable's filename (I think).

I had previously sorted out a similar problem with bundle identifiers by appending ":rfc1034identifier" to PRODUCT_NAME in my info.plist, but this is a little different.

I'm not sure how to set the executable name directly, but I eventually just changed the Product Name in the "Packaging" section on the "Build" tab for my Target to something that didn't have any spaces. Fixed!

Woody Zenfell III