Can't install Distribution provisioning profile

 ̄綄美尐妖づ 提交于 2019-12-09 08:43:17

问题


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


回答1:


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.




回答2:


I've just spent the last 12 hours trying to figure out why my OSX App wasn't code signing and the error was related to the provisioning profile containing 0 devices for my Mac. After following the advice above, much head scratching, deleting and re-creating certificates, the following link provides the correct approach for Distribution provisioning

https://developer.apple.com/library/ios/qa/qa1814/_index.html

Moving forward it seems that for Mac App Store Submission on OSX the correct code signing identity to use is Mac Developer and set the Provisioning Profile to Automatic.

You do need to restart Xcode during the Code Signing and Provisioning reset, but it does work.



来源:https://stackoverflow.com/questions/19798330/cant-install-distribution-provisioning-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!