Reputation: 972
I try to debug my app with XCode on my device, it works with every Phone except iPhone 5 then I get the message:
"A valid provisioning profile for this executable was not found"
When I try to renew the certificate with the organizer, Xcode crashes.
Upvotes: 20
Views: 43033
Reputation: 199
I had the same exact problem and solved it following the guidelines from... Apple :)
To ensure the Xcode project Bundle Identifier is compatible with the App ID associated with your Provisioning Profiles, perform the following steps.
Upvotes: 19
Reputation: 771
For me the problem was simply that it was a new year and Apple required me to re-register my iPhone. This whole code signing business with iOS development is whole lot harder than it needs to be. Android's approach is so much easier.
Upvotes: 0
Reputation: 16416
In addition to all these great answers, also make sure that you build scheme's Run section is set to "Debug" and NOT to "Release".
Upvotes: 1
Reputation: 62519
for me it was because my provisioning file capabilities did not match xcodes. There was a warning on the general tab of your target under the identity section right under the team designation. It has an option to fix the issue which issued a new provisoning profile.
Upvotes: 0
Reputation: 2809
I experienced the same problem, and discovered that my solution was to check the date on the device. If the date on the device was in the future, and AFTER the date when your provisioning profile expires, then this error message would appear. After changing the date back to the current date, or a date that is before your provisioning profile expires, then your app should successfully load on your device.
Definitely consider the other solutions first before this one. This was a unique situation for me, as I was testing an app that required changing the device date, and couldn't understand why one moment the app was loading, and why the other moment it wasn't.
All the best.
Upvotes: 4
Reputation: 921
I have same issue because my device UDID start with "FFFFFFFF". This UDID is wrong.
Now i taken UDID from Xcode.
Connect your device to mac
Xcode --> Window --> Devices --> Click on your device --> Identifier(UDID)
Added this UDID in my apple developer account and re-generated the provisioning profiles.
Now it is working fine
Upvotes: 9
Reputation: 2874
Following worked for me:
Note: I had changed this to distribution provisioning profile for the app when building for distribution but did not change it back when resuming work on the project.
Upvotes: 4