Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
458 views
in Technique[技术] by (71.8m points)

ios - None of the valid provisioning profiles include the devices

I have removed some of the devices from the provisioning profile from apple portal for adhoc distribution and downloaded and installed it in xcode 6. But upon archiving the project it shows the error for missing devices and invalid provisioning profile .enter image description here

I have wasted 3-4 hours regarding this issue but found no luck. Any kind of help would be greatly appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I just had this error as well. I am not sure if all of these steps are required, but the is exactly what I did to fix it, and it worked for me...

  1. On the device, I removed the provisioning profile that was in General -> Profile.
  2. In Xcode, under window tab open up the "Devices" window. (shift+cmd+2)
  3. Choose the device and copy its identifier
  4. Login to developer.apple.com and go to the "Certificates, Identifiers & Profiles" area
  5. If the device in question is not registered, register it in the "Devices" area. (My device was not registered, so I registered it)
  6. In Xcode preferences under Xcode tab, go to the Accounts tab and choose your Apple ID.
  7. Choose the identity from the list and then hit the "View Details..." button.
  8. Under "Signing Identities", only "iOS Development" was listed.
  9. Click the "refresh" button on the lower-left of this details page.
  10. I was informed that I didn't have a distribution certificate and asked if I wanted Xcode to request one for me. I chose Yes (or Request)
  11. 'iOS Distribution" then showed up also, just under the "iOS Development" entry
  12. Hit the "Done" button
  13. Exit from the Xcode preferences
  14. Choose the Target for your project, then choose the "General" tab
  15. Choose the "Team" dropdown and pick your team, even if it is already selected. This causes Xcode to refresh its info about the Team.

At this point, my warning next to "Team" went away. I then tried to run my app on the problem iOS device again and it worked as expected.

I hope that by following these steps, it will at least help you get closer to fixing your problem.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...