启动远程程序时出错:无法获取进程699的任务

时间:2011-05-11 05:25:30

标签: iphone objective-c ipod

我正在使用我的ipod touch调试我的应用程序。两天前我也做了调试。但从昨天起,我可以使用调试模式运行应用程序。应用程序也在调试时打开基础。应用程序完全启动后,几秒钟后我收到此错误“启动远程程序时出错:无法获取进程699的任务。”之后,我的应用程序崩溃了。请帮帮我......

2 个答案:

答案 0 :(得分:5)

当应用程序包含Entitlements.plist文件时,我在通过XCode调试设备上的二进制文件时遇到问题,无需安装到设备上进行调试。一般情况下,我已将此文件包含在发布版本中(App Store需要它)并将其删除以进行调试(因此我可以从XCode调试应用程序)。这可能是你的问题。

更新:自(至少)2010年8月(iPhone 4.1 SDK)起,Entitlements.plist不再需要在许多情况下包含在您的应用程序中(例如,通过App Store分发。)有关详细信息,请参阅此处需要Entitlements.plist的情况:

IMPORTANT: An Entitlements file is generally only needed when building for Ad Hoc Distribution or enabling Keychain data sharing. If neither of these is true, delete the entry in Code Signing Entitlements. (emphasis mine)

同时检查您的个人资料。

The ad-hoc profile doesn't support debugging. You need to debug with a Development profile, and use the Ad-Hoc profile only for distributing non-debuggable copies.

答案 1 :(得分:0)

对于xcode 4:您必须从新文件创建Entitlements.plist文件。和 目标 - >构建设置 - >代码签名权利,你必须在这里写“Entitlements.plist”

我这样做了,xcode再也没有错误