Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode: Failed to create provisioning profile w/ Generic Device

I am trying to release my ionic app for iOS but I am getting this error below when I try to archive my app in Xcode:

enter image description here

I have created a profile and added iOS Distribution and iOS developer certificates:

enter image description here

I have tried various solutions found online such as unchecking and checking Automatically Manage Signing, changing Deployment Target from 8.0 -> 7.0 and even closing and reopening Xcode. Yes, I paid the $100 for a developer account.

I also do not have an iOS device which may be the problem. I should be able to do this without an iOS device though right?

Also, I was following this tutorial https://code.tutsplus.com/tutorials/distributing-ios-apps-with-itunes-connect--cms-21672 but I got stuck at the end - It doesn't tell me what to put in here on iTune Connect:

enter image description here

Any help is appreciated - Thanks.

EDIT: All the 'stuff' I did:

Here is the app information I filled out as suggested by a comment (I have not submitted it yet - I believe I need to Archive it first?):

enter image description here

Here is my Provisioning Profile. I downloaded it and opened it in Xcode. I tried to archive it but I got the described error:

enter image description here

Heres my distribution thing (Should be in my provisional profile):

enter image description here

And also my key (Should be in my provisional profile):

enter image description here

I also have this certificate in my Keychain:

enter image description here

Edit Edit:

Dragging the provision profile onto Xcode didn't do anything. I went into Xcode and manually opened it with Xcode and got this thing:

enter image description here

Is the file type correct? Its called Moment_Provisioning_Profile-2.mobileprovision. This is the file I got when I hit download on the above screenshot.

like image 548
MatTaNg Avatar asked Jan 26 '26 12:01

MatTaNg


2 Answers

  1. You need to add your device UDID in Apple developer certificates and identifier section.
  2. Recreate and install provisioning profile.
  3. Make sure you are using correct app ID/ bundle identifier in your bundle settings.
  4. Xcode should pick up provisioning profile automatically, if not uncheck automatic box and select your developer provisioning profile. Hope this will help.
like image 170
Ajay Avatar answered Jan 29 '26 00:01

Ajay


first: if you have not register your bundle id in the apple developer center for your app, then goto "Certificates, identifiers and profile" section: https://developer.apple.com/membercenter/index.action and register it after that..

uncheck Automatically Manage Signing,

and select your downloaded profile : and then clean and build again. enter image description here

for more about xcode help

EDITED

Step 1: Clear the derived data

Step 2: then download the provision profile & certificate from developer account

Step 3: install the certificate by double clicking on it

Step 4: drag provision profile on xcode icon in Dock. enter image description here

Step 5: uncheck "automatic code sigining" option and selected the provision profile from list as shown above

like image 34
MAhipal Singh Avatar answered Jan 29 '26 02:01

MAhipal Singh