Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

None of the valid provisioning profiles include the devices

Tags:

ios

xcode6.1

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.

like image 510
SandeepAggarwal Avatar asked Feb 18 '15 14:02

SandeepAggarwal


People also ask

How do I add a device to my provisioning profile?

Adding a new device to the Ad Hoc ProfileGo to the iOS Provisioning Portal and click on Provisioning. Select the Distribution tab. 2. Select the Ad Hoc profile you want to modify and click 'Edit'.

How do I add a device to my provisioning profile on my iPhone?

After logging in to the iOS Provisioning Portal, click Devices in the sidebar. Click Add Devices. Enter a device name and the device ID. Click Submit.

What are provisioning profiles on Mac?

The profiles resource represents the provisioning profiles that allow you to install apps on your iOS devices or Mac. You can create and delete provisioning profiles, and download them to sign your code. Provisioning profiles include signing certificates, device identifiers, and a bundle ID.

What is the provisioning profile?

Apple's definition: A provisioning profile is a collection of digital entities that uniquely ties developers and devices to an authorized iPhone Development Team and enables a device to be used for testing.


1 Answers

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.

like image 192
Perlguy Avatar answered Oct 19 '22 12:10

Perlguy