Search code examples
iphonexcodeiosdistributionprovisioning

A valid provisioning profile for this executable was not found: only with distribution


I'm releasing a new version of my iphone app and everything was going great until I changed the settings to "distribution" and "device", and then got the error:

A valid provisioning profile for this executable was not found.

This doesn't make sense as I am able to install the app onto my phone in debug or release mode, but not in distribution mode. Is this error because the provisioning profile and distribution profile are not compatible? Or what could be a solution?

Back history... I DID just get a new iPhone 4 a month ago and this is the first distribution I have done with this device. Xcode is also telling me:

The iPhone “X” doesn’t have the provisioning profile with which the application was signed. Click “Install and Run” to install the provisioning profile “Y Distribution Profile” on “X iPhone” and continue running “Z.app”.

Can anyone help? I'm going nuts and tired of running into a wall. Thanks in advance!!!!


Solution

  • What I needed to do was "build" instead of "build and run"