开发者

iPhone Debugging Error launching remote program: failed to get the task for process 907

开发者 https://www.devze.com 2022-12-19 09:15 出处:网络
Created an app for adhoc distribution and installed on iphone but it is not working on the installed iphone,Tried connecting the iphone to mac and debug the app but it throws up error stating

Created an app for adhoc distribution and installed on iphone but it is not working on the installed iphone,Tried connecting the iphone to mac and debug the app but it throws up error stating

" Error launching remote program: failed to get the 开发者_JS百科task for process 907."

is there a way to debug the adhoc distribution provision file from xcode


No, you can't debug an AdHoc build in XCode--setting get-task-allow to FALSE in your Entitlements.plist basically says "don't allow the debugger to connect to this", and is required for AdHoc and AppStore builds.

See

What does get-task-allow do in Xcode?

or the documentation...


I started having this error in my projects in XCode 4.2, and had a tough time figuring it out with the new project layout.

Make sure you go into the Project Settings and change the Code Signing Identity to a development profile for the Debug setting in the target settings. It's a bit easy to miss because the Project settings come up first, and there are identical looking Code Signing Identity settings there. But Target settings trump Project settings.

If that still doesn't work in XCode 4.2, go to "Edit Schemes" - in the project drop down, which is just to the right of the stop button, in the left segment of that custom pop-up. Select "Run" and make sure Build Configuration is set to "Debug".

In prior versions of XCode, it used to tell you whether you were in debug or release right up front; I haven't found where it's that obvious with the new "Schemes".


Restarting the xcode worked fine for me

0

精彩评论

暂无评论...
验证码 换一张
取 消