“存在内部API错误。”在任何iPhone / iPod-touch设备上运行应用程序时 [英] "There was an internal API error." while running an app on any iPhone/iPod-touch device

查看:194
本文介绍了“存在内部API错误。”在任何iPhone / iPod-touch设备上运行应用程序时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在向App Store提交iPhone应用程序。在对应用程序进行最后修改的同时,当我收到此消息时,我正在我的iPhone上编译和运行应用程序:

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:


有一个内部API错误。

There was an internal API error.

控制台有这样的说法:

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.

推荐答案

啊哈!感谢天堂的颠覆。通过与工作版本的比较,我发现在我的info.plist中有一个有问题的'UIRequiredDeviceCapabilities'有问题。一个小小的挖掘表明它必须是一个数组或字典,而不是我的情况下的字符串。这样设置......

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,这发生在部署过程中,甚至在应用程序关闭设备之前。

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

这篇关于“存在内部API错误。”在任何iPhone / iPod-touch设备上运行应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆