【发布时间】:2011-05-11 05:25:30
【问题描述】:
我正在使用我的 ipod touch 调试我的应用程序。前两天我也做了调试。但从昨天开始,我可以在调试模式下运行应用程序。应用程序也在调试的基础上打开。应用程序完全启动后,几秒钟后我收到此错误“启动远程程序时出错:无法获取进程 699 的任务。”之后我的应用程序崩溃了。请帮帮我...
【问题讨论】:
标签: iphone objective-c ipod
我正在使用我的 ipod touch 调试我的应用程序。前两天我也做了调试。但从昨天开始,我可以在调试模式下运行应用程序。应用程序也在调试的基础上打开。应用程序完全启动后,几秒钟后我收到此错误“启动远程程序时出错:无法获取进程 699 的任务。”之后我的应用程序崩溃了。请帮帮我...
【问题讨论】:
标签: iphone objective-c ipod
当应用程序包含 Entitlements.plist 文件时,我在通过 XCode 调试设备上的二进制文件时遇到了问题,而无需将其安装到设备上进行调试。然后,一般来说,我已将这个文件包含在发布版本中(App Store 需要它)并删除它以进行调试(这样我就可以从 XCode 调试应用程序)。这可能是你的问题。
更新:从(至少)2010 年 8 月(iPhone 4.1 SDK)开始,在许多情况下(例如,通过 App Store 分发),Entitlements.plist 不再需要包含在您的应用程序中。有关更多信息,请参见此处需要 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.
【讨论】:
对于 xcode 4:您必须从新文件创建 Entitlements.plist 文件。和 Targets->build Settings->Code Signing Entitlements you have to write here "Entitlements.plist"
我这样做了,xcode 不再出现错误
【讨论】: