Reputation: 14043
I am getting the error below when I connect the iPhone to my PC and try to run the application from Xcode. Where as in emulator I am able to run the application without any problem.
Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles include the devices:
iPhone
What could be the issue? I already found the answer here None of the valid provisioning profiles include the devices but confused that's the same issue as mine. I am newbie to IOS.
Upvotes: 5
Views: 5416
Reputation: 16957
You need to setup profile in Build Settings
of your project. Make a new profile after adding UDID
of your iPhone on Developer Member Centre (If you haven't added it already).
Please refer Maintaining Identifiers, Devices, and Profiles if you want to go through whole process of Managing Provisioning Profile
If you want to Add Device ID in existing Provisioning Profile
, follow these steps:
After performing above steps, download Updated Provisioning Profile
, but before installing it, delete Old Provisioning Profile
.
Upvotes: 3
Reputation: 1471
It means that the provisioning profile does not contain device id of the phone you are trying to run the app on. The other answer you mention looks like the correct way of solving it (Go to developer.apple.com and register your iPhone there then include the device id in the provisioning profile and finally refresh profiles in XCode). Anyway code signing is most annoying thing i find in doing iOS apps.
Upvotes: 4