I was working on the Ad Hoc distribution for 3 days after my App finished and works well on simulator.
At first, I did all the setting as a common instruction, but after installed the IPA dragged out from iTunes, the App quitted as soon as it launched and it shows the error
"Error launching remote program: failed to get the task for process XXX"
Then, I tried a lot of different settings' combination to check out what the key setting is, however, I didn't get the answer. Here's some tests I have made:
1.using developer provision file
Project Code Signing:
without Entitlements all don't Code Sign
Targets Code Signing

ebug :
iPhone Developer Provision Any IOS SDK:
Developer provision Others:
Don't code sign
Entitlemets.plist set to
YES
Results:
Simulator
OK
Device debug: terminate called after throwing an instance of 'NSException'
NSURL *url=[NSURL fileURLWithPath

ath]; Thread 1:Program received signal :"SIGABRT"
IPA(from .app):cannot run,
stay at the default page
2.using developer provision file
Project Code Signing:
without Entitlements all don't Code Sign
Targets Code Signing

ebug :
iPhone Developer Provision Any IOS SDK:
Developer provision Others:
Don't code sign
Entitlemets.plist set to
NO
Results:
Simulator OK
device debug:
Error Starting Executable 'WebView'
Error launching remote program: failed to get the task for process 7947.
IPA:
quit as soon as launch
3.Entitlements.plist: NO
using distribution provision file at:
Targets Project Code Signing: Debug&Any iOS SDk
Results:
Simulator:
NSURL *url=[NSURL fileURLWithPath
ath]; Thread 1:Program received signal :"SIGABRT"
4.using distribution provision for all code signing in both Project and targets
Entitlements.plist :no
results:
Simulator:
black screen Doesn't show anything