2

I'm testing the in App Purchase on device but when I tried to run the app on device, it displays error failed to get the task for process 2196.

I have encountered this error before but at that time I have changed my Provision profile and developer certificate and its worked but I can't do that with this app. because of the in app purchase.

Any suggestion that how can I solve this issue.

Jarod42
  • 203,559
  • 14
  • 181
  • 302
Dilip Manek
  • 9,095
  • 5
  • 44
  • 56
  • 2
    Clear all your preferences from xcode and delete your app from device and restart your device. clean and build your project. i think this may help to you. – Maul Jan 01 '14 at 10:10
  • Possible duplicate : http://stackoverflow.com/questions/1488600/iphone-debugging-how-to-resolve-failed-to-get-the-task-for-process – san Jan 01 '14 at 10:12
  • @san no, In his accepted answer problem with plist but in my app i have not added any plist rather than info.plist. And other answers suggest to change certificate and provisioning profile which also i cant do bcoz of inapp purchase – Dilip Manek Jan 01 '14 at 10:16
  • You are getting the same error, which is related to get-task-allow or "Can be debugged" property. Please see https://developer.apple.com/library/ios/qa/qa1682/_index.html. The Entitlement.plist can be the cause of this as specified in the link I provided. I dont think your issue is related to in-app purchase, though I would love to learn this new thing if it is really related. – san Jan 01 '14 at 10:22
  • @san issue is not related to inapp purchase its definitely becoz of the Provision profile or Certificate. and thanx for the link i will check it and let you know. – Dilip Manek Jan 01 '14 at 10:31
  • @Maul where do i clear the preference? – Dilip Manek Jan 01 '14 at 10:32
  • Go in xcode menu select preferences then select derived data and delete all inside that folder – Maul Jan 01 '14 at 10:34
  • @Maul Now i am getting `failed to get the task for process 170` error and app closed. – Dilip Manek Jan 01 '14 at 10:50
  • You are getting the "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. – Hemant Chittora Jan 01 '14 at 10:54

1 Answers1

3

I think you need to create separate developer provisioning profile with enable inApp Parchase. I think you are trying to use same testing developer provisioning profile with your current app. Follow this step:-

  • Create a new App ID in the Provisioning Portal
  • Create a Development Provisioning Profile using the new AppID
  • Create a new App in iTunes Connect. Enter the basic info but Do Not upload a binary. Do Not click the 'Ready to Upload Binary' button.
  • Create an In App Purchase Product for the App. The status for the Product should be 'Approved by Developer'
  • In iTunes Connect, return to the App Details and add your new In App Purchase Product to the In App Purchases section of the App Details. Run the project from XCode, using the Development Provisioning Profile you created.
Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144
  • But i have another issue related to this. I have created developer provisioning profile and its worked in-app working. But how can i send the app to my client for testing without distribution provisioning profile. – Dilip Manek Jan 01 '14 at 11:31
  • if your client want to test build then just sent IPA file as we did normally and create one testUserAccound from Itunes Connect. and give that test user id password to client. – Nitin Gohel Jan 01 '14 at 11:33
  • Sorry for my less knowledge but isn't the Distribution provisioning profile is compulsory for ad hoc distribution? – Dilip Manek Jan 01 '14 at 11:35
  • 2
    distribution provisioning only need while you are going to submit app in appstore. – Nitin Gohel Jan 01 '14 at 11:38