Labanino
Labanino

Reputation: 3960

Failed to create provisioning profile

I'm trying to create a project in Xcode, Version 8.0 beta 6 (8S201h) and I'm getting this error.

enter image description here

The apple account is a free one because I'm just playing around with Xcode but it is forcing me to set it as a Team. Any help?

Upvotes: 210

Views: 261926

Answers (24)

saigopi.me
saigopi.me

Reputation: 14908

By adding my iphone device here solved my problem. https://developer.apple.com/account/resources/devices/list

and getting apple UUID use this website https://udid.tech no need of xcode and itunes.

Upvotes: 1

Akshoy
Akshoy

Reputation: 307

There are basically two way to solve the issue.

  1. Add a device on your mac. Then you can choose that device by selecting Product => Destination => Select your connected device. After this, Xcode will try to add the device in apple developer platform and also create a profile against the same.

  2. Go to https://developer.apple.com/account/resources/devices/list. Add a iPhone device by providing device name and device UDID number. you can google it (How to get the UDID number for iphone). Then you can create the profile and then retry.

Upvotes: 0

Quentin CG
Quentin CG

Reputation: 973

Adding a fake device on Apple dev account helped me since I have no iPhone:

https://developer.apple.com/account/resources/devices/list

Example of device you can add:

  • Name: "NotARealDevice"
  • Device ID: "1234567890123456789012345678901234567890"

Upvotes: 2

goodhyun
goodhyun

Reputation: 5002

It's just as it says. To have xCode automate something, you need to get your own iPhone registered there with the UDID, which you can find on Finder or System Information (USB section) when you connect to your iPhone.

Failed to create provisioning profile. There are no devices registered in your account on the developer website. Select a device run destination to have Xcode register it.

Upvotes: 1

Edeson Bizerril
Edeson Bizerril

Reputation: 1715

To set up WITHOUT an iPhone, you can manually download certificates from Apple's website and create a profile. The certificates you install on the Mac and the Profile you import into XCode after download. It worked for me. Follow the links:

Documentation: https://developer.apple.com/pt/support/certificates/

Certificates: https://developer.apple.com/account/resources/certificates/list

Profile: https://developer.apple.com/account/resources/profiles/list

Upvotes: 1

Abdul Basit Mangat
Abdul Basit Mangat

Reputation: 1180

Manual:

  • Go to your apple developer account and hit certificates
  • Select devices from the left side
  • Add the device name and its UDID. Close Xcode and hit automatic signing

Automatic:

  • Attach your iPhone to Xcode. and run the app on that. Xcode will automatically create a profile.

Upvotes: 1

packaging03
packaging03

Reputation: 1

What saved me from this error was when I changed my Bundle Identifier.

Try and do that

Upvotes: -2

mohsin
mohsin

Reputation: 36

Both of these errors arise as a result of a provisioning profile not existing. To create one, simply do the following as suggested in the error message:

  1. Plug in your Apple device
  2. Choose the device from the schemes/simulator menu
  3. Thereafter, provisioning profile will automatically be created

enter image description here

Upvotes: 2

silicon_valley
silicon_valley

Reputation: 2689

For me this happened when I tried to run on a device with a newer version of iOS than supported by the version of Xcode I was running.

Upvotes: 0

user3555158
user3555158

Reputation: 11

For me this happened when I was making a tvOS app and didn't have a appleTV registered.

In general, you need to plug in the device or have logged into it (connected to it)..then it shows up here: https://developer.apple.com/account/resources/devices/list

You can also add devices there..you need to click reset to be able to add a new device. the reset button should be labeled modify because it doesn't reset anything.

for example, if you need to make a tvOS app then you need to have an apple TV in the device list. Once you add that then you're good to go. kisses.

Upvotes: 1

Nagendra Singh
Nagendra Singh

Reputation: 7

Change bundle identifier, Straight solution

Upvotes: -2

tanakan_tr
tanakan_tr

Reputation: 11

Change Deployment Target to newer version and then solved

Upvotes: 1

T. Fo
T. Fo

Reputation: 199

Adding this because it took me 4 hours to figure out..

Xcode will fail to create the provisioning profile for a device with no name, i.e. "" or " ". When I changed my device name to something else, the steps above worked.

Upvotes: 2

lalit sharma
lalit sharma

Reputation: 11

This error is because you selected a target rather than a project name, so please, at the left side of general in Xcode you will find your project name. Click on it and change it from target to project section.

Upvotes: 1

Nitin Bagoriya
Nitin Bagoriya

Reputation: 158

The issue behind this error is Unavailability of App ID with given Bundle Identifier

Solution: Change Bundle Identifier simple :)

Upvotes: 2

Eran Or
Eran Or

Reputation: 1532

After some time with the same disturbing error and after I write a unique Bundle Identifier and it didn't help, I searched the web and found here that my error was that I selected a virtual device and not an real device. The solution was:

1.I plugged my iPhone

2.I clicked on the button - set the active scheme. and there it was on the top - device iPhone. the error has gone.

enter image description here

Upvotes: 6

Calendar Calendar
Calendar Calendar

Reputation: 111

preparing debugger support

Profiling your Phone takes a few minutes. . . watch the status bar on the top to be sure that your phone is being profiled on the top.

Next, be sure you choose YOUR PHONE as the target, not iPhone 7 or iPhone 8... your exact phone. This is done by choosing: Product > Destination > (pick your phone)

Your phone will only show up after it's been plugged in, turned on, and left running for a few minutes while Xcode creates a profile. destination

Upvotes: 10

Sharkey5_06
Sharkey5_06

Reputation: 299

Change the bundle identifier to something more unique.

If you are following a tutorial and just put a generic identifier then adding a few numbers to the end will likely solve your issues.

i.e. if you had HelloWorld change it to HelloWorld12345

Upvotes: 18

Koray Yavic
Koray Yavic

Reputation: 93

I had same problem with provisioning profile. If you have any kind of iPhone, you can connect to your Mac with cable and provisioning profile is automatically defined. enter image description here

Upvotes: 7

iPhoneDeveloper
iPhoneDeveloper

Reputation: 996

Check these things.

1.A device is connected to your system or not.

2.Deployment target in xcode. (General->Deployment info->Deployment target) It should match with the ios version of your device.

3.Change your bundle identifier. Follow general rules of setting a unique bundle identifier for yourproject while running in device. See this what is correct format of bundle identifier in iOS?

Also be careful with the number of bundle identifiers you set in the project. Please remember all bundle identifiers or note it down somewhere. Since you are using a free account you have limited access to the number of bundle id's.

You should also disable push notifications in the "Capabilities" section of the project. Try changing "App groups" as well in the format of group.com.someString.

These things helped me run my app in real device without any errors.

Upvotes: 7

Grzegorz Pawlik
Grzegorz Pawlik

Reputation: 2206

In my case this error disappeared when I changed the "Bundle Identifier" to something less generic (e.g. adding some random numbers at the end)

Upvotes: 74

noobular
noobular

Reputation: 3287

After struggling for an hour, I just unchecked the "Automatically manage signing" and went back to the old school way of specifying my profiles. Probably not the best thing to do but works.

Upvotes: 11

matt
matt

Reputation: 534885

Check the schemes menu at the top of the Xcode project window. Look at the destination you're trying to run in. If you run in the simulator, you don't need to sign your project.

enter image description here

If you run in a device, you need to attach the actual device. It must not say "generic device".

Upvotes: 203

Rashwan L
Rashwan L

Reputation: 38833

I have had this error multiple times and what solves it for me is the following:

  1. In the list with the view of all certificates, right click on each row and move each certificate to trash (go to Xcode > Preferences > Choose account > Click View Details)
  2. Go to member center download the right certificates again and click on them so
  3. Restart Xcode
  4. Go to build settings and set the right Code signing for debug/release - you should be able to see an option on the row that says "Identities from profile..."

If this doesn't work then you should consider revoking your certificate and then create a new one and the do the steps above again.

Upvotes: 5

Related Questions