Haris
Haris

Reputation: 14043

None of the valid provisioning profiles include the devices iPhone

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 

Screenshot for error

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

Answers (2)

Aamir
Aamir

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:

  1. Go to Member Centre
  2. Select your Provisioning Profile
  3. Press Edit
  4. Click on CheckBox with appropriate device name under devices Tab.

After performing above steps, download Updated Provisioning Profile, but before installing it, delete Old Provisioning Profile.

Upvotes: 3

Krzysztof
Krzysztof

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

Related Questions