views:

7

answers:

1

I am in the process of submitting an iPhone app to the app store. While making the final touches to the app I was in the process of compiling and running the app on my iPhone when I got the message ...

"There was an internal API error."

The console had this to say ...

25/08/2010 10:10:54 Xcode[3556] Failed willExecute: Error Domain=com.apple.platform.iphoneos Code=0 UserInfo=0x2011adec0 "There was an internal API error." -- {
    NSLocalizedDescription = "There was an internal API error.";
    NSLocalizedFailureReason = "";
    NSLocalizedRecoverySuggestion = "";
}

The problem is specific to this project, others projects don't suffer the same problem. The same problem exhibits when moved to another machine, or another mobile device is swapped in.

I should be most grateful for any hints or ideas on the subject ...

A: 

Aha! Thank heavens for subversion. Through comparison with a working version I found out that an offending 'UIRequiredDeviceCapabilities' in my info.plist was at fault. A little figure digging showed it had to be an Array or Dictionary, and not a string as was my case. Setting it thusly ...

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>still-camera</string>
</array>

.. solved the problem.

@Toastor, this happened during the deployment process, even before the app went down the wire to the device.

Martin Cowie