This week, after getting my new MBP, I was trying to deploy my new iPhone application to my testing device (iPhone 3G). After going through all code signing/provisioning issues I managed to deploy my app. However, when GDM tries to run it, I was getting an exception that says “Error from Debugger: Error launching remote program: Security policy Error“.
And it was unable to run my sweet app in my device. Everything was working perfectly in Simulator, but not in device. After a little googling, I found the solution. Before going into the tip, I want to let you all know guys, this problem only occurs if your iPhone is jailbroken.
Okayyy, here is the tip: Please just add following lines into your Info.plist file and save the world 🙂
<string>Apple iPhone OS Application Signing</string>
I hope it saves your day too 🙂 Good luck!
Edit: As Mike Rentas / @Overloaded mentioned below, if you’re having this problem with the normal iPhone devices (non-jailbroken), then first try removing the old provisions from the device.