ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)

按照下面步骤解决:
For Ad Hoc Distribution, complete the following:

    In the File Menu, select New File -> iPhone OS -> Code Signing -> Entitlements. Name the file “Entitlements.plist" and click ‘Finish’. This creates a copy of the default entitlements file within the project.Select the new Entitlments.plist file and uncheck the “get-task-allow” property. Save the Entitlements.plist file.Select the Target and open the Build settings inspector. In the ‘Code Signing Entitlements’ build setting, type in the filename of the new Entitlements.plist file including the extension. There is no need to specify a path unless you have put the Entitlements.plist file somewhere other than the top level of the project.Click ‘Build’. (Note: Your binary must contain a flattened, square-image icon that is 57x57 pixels. This icon is displayed on the iPhone or iPod touch home screen.)
posted @ 2011-08-01 19:00  漂泊的云  阅读(3179)  评论(0编辑  收藏  举报