0

I am getting the following error

" Error launching remote program: failed to get the task for process 521."

Which does not allow the application to run ,(in debugger) dont know what the issue is. If someone has came across the same issue please help.

Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
mrugen munshi
  • 3,497
  • 9
  • 36
  • 50

1 Answers1

1

This sounds to me like you are trying to debug an app where you have set get-allows-task to NO in your Entitlements.plist file (for instance, for a Ad Hoc build).

Does your project have an Entitlements.plist file? If so, check the value of get-allows-task. If you are running the Debug configuration, this must be set to YES

If you open the file by single clicking on it, so it's displayed in the property list editor rather than the code editor then the required parameter is (confusingly) named Can be debugged

Entitlements.plist

Edit: Added screenshot to show where Code Signing Entitlements can be found

enter image description here

  • hey thanks for quick response but i dont know from where can we set that get-allows-task to NO. – mrugen munshi Aug 08 '11 at 13:36
  • In your Xcode project, look to see if you have a file called `Entitlements.plist` or `Entitlements.entitlements`. If you do you can just click on it to open it in the code editor and then look for the line that says `Can be debugged`, once you've found it click to the right where the drop-down is and change it's value to `YES` –  Aug 08 '11 at 13:49
  • hey thanks i did that, but did not helped and mnay thanks for your inputs. – mrugen munshi Aug 09 '11 at 10:04
  • Can you tell me, or add a screenshot to your question showing what is listed under the **Code Signing Entitlements** section of your build settings? (*I've added a screenshot above to show where you can see them*) –  Aug 09 '11 at 10:45
  • hey i did make the changes but still could not make the figure out the error , can i get your email id i will send the code on that id is that fine. – mrugen munshi Aug 10 '11 at 04:35
  • I'd prefer not to post my email address here as it'll be ripe for picking by spam bots. However, I'm happy to take a look at your code if you upload it to something like [CloudApp](http://getcloudapp.com/) or [GitHub](http://github.com) or any other sharing service you prefer and then post the link here. –  Aug 10 '11 at 07:23
  • I have downloaded it from http://tutorials.simplesdk.com/in-app-purchase.html . Just download it and try to have look why i am not able to debug this code .It happen then when i debug this code it runs for about 5 t 10 seconds and then above error. – mrugen munshi Aug 11 '11 at 10:25