Refresh Team Provisioning Profile After Adding Devices For Distributing Archived Beta - ios

I have been having an issue wherein I add a device to the developer center, and it doesn't appear to be added to the provisioning profile for some time. Then, there's no guarantee that the team provisioning profile is downloaded when I archive a build to distribute it to my beta testers (usually via TestFlight).
How can you forcibly update the provisioning profile so that all devices are included?

XCode > Preferences > Account
At the right side ou will find a list of all your teams.. double click the desired one
You will see a list of signing identities and provisioning profiles..
Theres is a refresh button =) BOTTOM LEFT side =)
GL HF

Related

How to add a device to provisioning profile automatically?

I want to allow my users to install my iOS app with ad-hoc distribution. I want to get their UDIDs and add them to the provisioning profile automatically. I know how to do it manually in the developer portal but what I need is an api to do this process automatically not manually.
Does apple provide any api or other means to add devices to provisioning profile automatically?
(Note that I do not have any device available. I just have their UDIDs)
Xcode will automatically add your devices into your provisioning profile. You will see a warning about that on xcode. You can click "Register" button on it.
Try the below steps
Login to your iphone provisioning portal through developer.apple.com
Add the UDID in devices
Go back to XCode, open up the Organizer and select "Provisioning Profiles", ensure that "Automatic Device Provisioning" is checked on the top right pane, then click on the "Refresh" button, and magically all your devices set in the provisioning portal will be automatically added.

Is it any option to disable auto generate provisioning profile from Xcode 5.0.2?

I am using Xcode 5.0.2 and developing ios 7 Application with Push notification service.When I try to create a Push Notification service enabled Provisioning Profile in Dev center,I have seen lot of Provisioning profiles created with message as "ios Team Development provisioning profile(Managed by Xcode)".
I want to develop my application using my Push notification enabled provisioning profile only. But I didn't get any option to select this particular provisioning profile.In build settings, I able to select only my Apple ID only. If I select this it selects "ios Team Development provisioning profile(Managed by Xcode)" only not my push enabled provisioning profile. Is it any option to disable auto generate provisioning profile from Xcode?
As to me, I simply choose 'Team' of my Apple ID in 'General' tab, and everything is done if proper APNS certificates are set in dev center, because Xcode 5 is really smart.
IIRC, earlier versions of Xcode used to let you select your provisioning profile in the build settings under Code Signing Identity. Now you select your provisioning profile under a separate build setting called Provisioning Profile, and once that is selected, you can select your developer certificate under Code Signing Identity. This part is more intuitive than the old way, if you know the new setting is there.
If your desired provisioning profile isn't available under the Provisioning Profile build setting, then you have to go to Xcode > Preferences > Accounts > [account name] > View Details and click the Refresh button under the Provisioning Profiles list. That should download your current profiles so you can select them in the build settings. This part is totally unintuitive and hidden. But one thing is for sure ... after you've done it enough times that it becomes intuitive, Apple will change it again!

Can't install Distribution provisioning profile

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
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.
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.

Automatically refresh IOS devices in a team provisioning profile by Xcode

I have some IOS devices week by week to which I must send my apps for testing purposes during development. These devices can't be pluuged to my computer, because they are far away from me and just for this case they won't be taken to my local machine. If plugging would be available, my life would be much easier. But it is not the case.
Now I have to do a lot of annoying things by hand: add it, regenereate it, delete it from local machine, add to new one etc etc.
After adding a device to my devices in Apple developer portal I'd like to have it in XCode without regenerating certificate, delete, download to my local machine. There should be some automatic refresh process.
Before XCode 4.5 there was an option in organizer to refresh it automatically by Xcode.
What about in the current XCode version?
In Xcode 4.5 same option to refresh is available.
Steps To create Ad hoc Profile which is to be followed before the above process is done.
Check this.
Steps to refresh profile.
1.In developer portal Add device.
2.Update Developer provisioning profile by adding the device to the profile.
3.Open Xcode> Organiser >Devices
4.Delete the old profile
You will find a refresh button at the button click refresh.
Clean the project and Archive it.
Send it to user, It will work on the new Device.
#TechFanatic's solution didn't work for me.
What did work was for me was:
From XCode, select XCode > Preferences.
Click the "Accounts" tab.
Select your account.
Click the "View Details..." button.
Click the refresh button in the lower left corner.
This comes from the section "Refreshing Provisioning Profiles in Xcode" in Apple's documentation.
EDIT: This no longer works in XCode 7. There is no "refresh" button that I have found anywhere in XCode 7. If you find one, please provide that answer. In the meanwhile, there is a solution of sorts - you delete and recreate the managed profile.
Specifically, if you are doing an Ad Hoc build:
In the member center, delete the "iOS Team Provisioning Profile" for your app. Do not delete the "XC Ad Hoc" provisioning profile.
In XCode, in the XCode > Preferences menu, in the "Accounts" tab, under "View Details..." for your account, delete the "iOS Team Provisioning Profile" for your app by right-clicking and selecting "Move to Trash".
In the "General" tab for your Target, there will be a "Fix Issue" button. Click it.
Don't worry that the member center now says that your XC Ad Hoc provisioning profile is now invalid. That will fix itself in a later step.
Build your app.
Archive your app.
Export your app from the "Organizer".
Select "Save for Ad Hoc Deployment".
XCode will complain that your provisioning profile doesn't match or some such. Click the "Reset" button and then click "Try Again".
XCode should continue and create an .ipa file.
In the member center, your XC Ad Hoc provisioning profile will show up as active again.
Simple, right?

How to add a new device to a team provisioning profile

I have a new device for our app to be tested on, so I added it to the provisioning portal.
There are currently two development provisioning profiles - however the provisioning portal will not let me edit the team provisioning profile in order to add the new device.
- But I'm sure this something I've done before as I've previously added new devices as they arrived to enable testing with them.
How can I add the new device if the profile isn't editable? (
(The limit has not been reached, there's only several devices in the portal in total).
For Xcode 5 :
From the Xcode menu select preferences>>Accounts, Select your Apple ID then select Details...
You will get a popup with your Signing Identities and Provisioning Profiles.
Click the Refresh button in the bottom left and the iOS Team Provisioning Profiles get re-generated and downloaded.
You don't have to edit it, click Refresh in Xcode Organizer to make it generate a new one for you automatically.
For new XCode 5 & Xcode 6
Adding Device UDID to Provisioning Profile on developer.apple.com
Login to iOS dev center and go to Device section under 'Certificates, Identifiers & Profiles'
Add new Device using UDID
Update Provisioning profile with newly added Device
Once you have added the device and need to update your developer provision profile
Select newly added device in provisioning profile and click Generate
Update XCode with Updated Provisioning Profile
Finally goto XCode --> Preferences --> Accounts --> ViewDetails -->Refresh -->Done
That's All Go for Clean and Build now.
Cheers!!
On XCode 7 the answers here are inapplicable. https://stackoverflow.com/a/32725552/1449799 should work (delete the profiles in xcode, and tell it to download them again), BUT unlike the instructions at the link, for XCode Version 7.2.1 (7C1002), you (or at least I) cannot select multiple profiles at once.
Open the Organizer window in Xcode. With your device plugged in to the computer, select your device in the Organizer.
In the area detailing your device's specs, click the button titled "Use for Development". You may need to log in to your Apple Developer profile. Once that's done, your device should be listed as part of the provisioning profile and have the profile installed.

Resources