在真機上運行時出現“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.)
轉自:http://bbs.weiphone.com/read-htm-tid-608920.html
|