Alex Rivera | Logout

"There was an internal API error." while running an app on any iPhone/iPod-touch device

Asked 2010-08-25T09:20:00.340
12

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 this 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.

Edit
Report

2 Answers

8

I had the same problem on Xcode 4.5 beta 4 when I've tried to run an app which was already installed on my iOS device. You could try to remove your app from device and make sure you are using Developer profile for signing.

answered 2012-08-15T08:16:47.190
2

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.

answered 2010-08-25T10:32:53.000

Your Answer