Space Vatican

Ramblings of a curious coder

Error Launching Remote Program: Security Policy Error

I created a new iPhone project today and got a rather vague error message from Xcode when I tried to run it on a device:

Error launching remote program: security policy error

After some digging it turns out that the problem was that I had two provisioning profiles on the device: - a wildcarded one (which had expired) that I use for quick hacks that don’t warrant going through the hassle of setting up new provision profiles - one created specifically for this application

The wildcarded profile had expired, and for some reason the iPhone was trying to launch the app with the expired profile even though it had a valid profile that it could have used. Deleting the expired profile from the device did the trick. If only that error message had been a bit more explicit …