Xcode中get-task-allow有什么用

failed to get the task for process问题

A: Why am I getting "Error launching remote program: failed to get the task for process" when debugging an iPhone application on the device?

  You are getting the "Error launching remote program: failed to get the task for process" error message because you are either using your Ad Hoc or Distribution Provisioning profile when debugging your iPhone application on your device or you specified a code signing entitlements property list in your build settings which does not include a get-task-allow or "Can be debugged" property.

Debugging when using a Distribution Profile

  Distribution profiles don't have a get-task-allow entitlement property, which is needed for debugging iPhone applications. However, this property is available and enabled for Development Provisioning profiles. So, use your Development profile rather than your Distribution profile when debugging your iPhone application on the device.

Missing Entitlement Property】  

  If you specified a code signing entitlements property list in your build settings, make sure that your property list contains the get-task-allow property.

https://www.cnblogs.com/tekkaman/p/3715560.html?utm_source=debugrun&utm_medium=referral

------------------------------------------------------------------------------

【流程问题获取任务失败】


A:在设备上调试iPhone应用程序时,为什么会出现“启动远程程序时出错:无法获得进程任务”?


您将收到“错误启动远程程序:无法获取进程任务”错误消息,因为您在设备上调试iPhone应用程序时使用了临时配置文件或分发设置配置文件,或者在生成设置中指定了代码签名授权属性列表,但不包括get-task-allow或“can be debugged”属性。


【使用分布图时调试】


分发配置文件没有调试iPhone应用程序所需的get-task-allow属性。但是,此属性对开发配置文件可用并启用。因此,在设备上调试iPhone应用程序时,请使用开发配置文件而不是分发配置文件


【权利财产缺失】


如果在生成设置中指定了代码签名授权属性列表,请确保属性列表包含get-task-allow属性。

你可能感兴趣的:(iOS,XCode)