7

I followed the exact instructions on iPhone SDK Developers Portal by launching Assistant found on the first page.

But I still get the same error even though I deleted the provisioning profile, certificates many times and repeated the same process more than once.

Please help.

LOZ
  • 1,169
  • 2
  • 16
  • 43
zerlphr
  • 177
  • 4
  • 13

8 Answers8

3

It can happen if you build using an ad-hoc provisioning profile. If you followed the steps from Building your Application with Xcode for Distribution, you're building with a special Entitlements.plist, in which you disallow get-task-allow - this prevents the debugger from connecting to the application.

Try building with another provisioning profile (e.g. a Development profile).

Adam Woś
  • 2,493
  • 20
  • 21
  • ad-hoc provisioning profile? i got my provisioning profile from iphone dev center launch assistant. how do i get another provisioning profile? – zerlphr Jan 10 '10 at 17:29
  • From the iPhone Developer Program Portal: http://developer.apple.com/iphone/manage/provisioningprofiles/index.action – Adam Woś Jan 10 '10 at 17:35
  • Well, then apart from restarting the device, removing all profiles, cleaning all builds etc. I don't see another feasible solution. – Adam Woś Jan 10 '10 at 20:13
3

If you have previously used them... check NSDebugEnabled, NSZombieEnabled, MallocStackLogging and MallocStackLoggingCompact are all disabled in the Executable info Argument's panel. You can't run with these on a device.

Ross
  • 14,266
  • 12
  • 60
  • 91
1

Restart both the device and Xcode - this normally clears it up for me

James
  • 5,812
  • 5
  • 26
  • 30
0

When you build for distribution, make sure that the "Active SDK" is set to an iPhone Device SDK and not an iPhone Simulator SDK. Having it set to Simulator will still allow you to build the app, but it will give you this error when you try to run it on another device.

Also, make sure that whenever you plan on installing a new build you first change the Current Project Version in the Project Settings to a new version number.

-Drew

Drew C
  • 6,408
  • 3
  • 39
  • 50
0

Make sure you delete and reinstall all of the provisioning profiles in Organizer AND on your device (also using Organizer). The profiles exist in 2 places.

pmark
  • 281
  • 2
  • 9
0

I had the exact same problem. My solution was to quit XCode, start it again, and then do a clean build. Works for now.

0

Restart the dam device! it worked for me. I was running extensive provisioning deletion frenzy.

Mk.zRealDeal
  • 151
  • 1
  • 3
0

Deleting the debugged app from the phone, and restarting X-Code resolved this for me.

JordanC
  • 4,339
  • 1
  • 22
  • 16