When I try to run my app on my device with ad hoc distribution profile from XCode 4, I get: Error launching remote program: failed to get the task for process 3595.
The app does load onto the device though and works fine if I launch it from there. Yes, 'Can be debugged' is set to NO in Entitlements.plist.