Ios – Can’t install Distribution provisioning profile

iosiphoneprovisioning-profilexcode

I'd like to submit an app to the AppStore (my first app !).
I've already tested the application in my device (so I already have a development provisioning profile) but I'm not able to install a Distribution provisioning profile in Xcode.
I've followed the procedure (I don't know how many times) but when I try to add the provisioning profile through the Organizer I have following problems:

  • if I double click on the file nothing happens
  • if I click Add, the file is not selectable (grey)
  • if I drag and drop from Finder I see the following message: 1 profile
    cannot be installed on "iPhone of Corrado". "iPhone of Corrado" is not included in this profile.

What does it means ?
If I go in the Development Center\Certificates, Identifiers & Profiles\Provisioning Profiles\Distribution and edit the profile, there is no devices and there is no way to add any (while in the Development provisioning profile I see all my devices).
What I'm doing wrong ?
Thanks, Corrado

Best Answer

I don't know which Xcode you are using, but supposing you are using Xcode-5, i suggest you use the automatic provisioning profile sync feature.

Just go to Xcode>Preferences and select the Accounts tab.

If you don't have any Apple IDs account signed just click on the '+' button on the bottom left and select 'Add Apple ID...', put the id and password that you use to log on the apple developer.

After that just click on the 'View Details...' button on the bottom right, and your signing identities and provisioning profiles should appear there. If they don't, just click on the bottom left refresh button.