I have added some new devices. How can I refresh the provisioning profile, as Xcode 8 automatically manages signing assets?
I have found this question: Refresh devices in team provisioning profile managed by Xcode 7? – but we can't do that in Xcode 8.3.
I don't have the device with me so I manually added it in the portal and also edited the provisioning profile but Xcode is not re-downloading it.
This is what you need to do:
Go to ~/Library/MobileDevice/Provisioning\ Profiles/ and delete all the provisioning profiles from there.
Go to Xcode > Preferences > Accounts and select the Apple ID.
Click Download Manual Profiles or Download All Profiles. And it will download all the provisioning profiles again.
Remove the .mobileprovision file for the app this way :
The command in the terminal is : rm
Step 1. Click on desktop then from top menu Go > Go to Folders...
Step 2. Write/Paste following path and enter:
~/Library/MobileDevice/Provisioning\Profiles
Step 3. Select Provisioning Profiles folder and delete all provisions profiles in it
Step 4. Go to xCode Preference > Accounts > Apple ID and then click on Download Manual Profiles button
First delete the provisioning profile from ~/Library/MobileDevice/Provisioning\Profiles/ , then edit provisioning profile from developer portal and select all devices while editing Provisioning profile. Then download this profile and open in your Xcode.
To add devices to your provisioning profile in Xcode 8 with automatic code signing, you simply need to build to the device in Xcode. Xcode will add the device's UDID and regenerate the provisioning profile automatically. If you don't have physical access to the device, I don't think there is a way to add it to your provisioning profile without going back to manually managing your devices and profiles.
Related
A team member needed to register her device so I added her device to Devices section of Apple Dev Portal. I then created a new ad hoc provisioning profile that includes her device and finally deleted the old provisioning profile. But XCode doesn't seem to see this new provisioning profile:
To ensure that Apple is using the latest profile I did this:
rm -rF /Users/etayluz/Library/MobileDevice/Provisioning\ Profiles/
And when I try to build Xcode errors out:
error: Build input file cannot be found: '~/Library/MobileDevice/Provisioning Profiles/dab00c70-5073-403b-ae60-e337afeee7fc.mobileprovision'
How do I get Xcode to use the new ad hoc provisioning profile?
I also clicked on "Download Manual Profiles" in Preferences->Accounts - and that does fetch the new profile that I've created - but Xcode is being stupid and still demanding to use the older profile. How do I get Xcode to point and start looking for new profile?
Go to ~/Library/MobileDevice/Provisioning\ Profiles/ and delete all the provisioning profiles from there.
Go to XCode > Preferences > Accounts and select the Apple Id.
Click Download All Profiles. And it will download all the provisioning profiles again.
Go to Xcode->Preferences->Accounts
Select the Apple ID and then select the Team which your app is from.
Click on Download Manual profiles
CMD+Shift+K (Clean Project)
Build Project again (CMD + B)
How to see the downloaded provisioning profile in xcode 8.3.2? Previously there was a see details button for every added team in xcode. Now I can see a manage certificate button which will list all certificates. Where can I see the downloaded profiles? Is there any way to see the profiles inside xcode? I know we can goto ~Library/MobileDevice/Provisioning Profiles folder and check this.
In Xcode 8.3.2 you can only see the name of the profile and created and expiry date.Project Settings > Select Target In signing section press the icon in front of the Provisioning Profile.
If you just wan't to know that latest profile profile has been download or not. See this https://stackoverflow.com/a/44061528/1825618
I have added 2 new devices with their UDID in apple developer website and downloaded the Mobile provision profile Certificate with extension(.mobileProvision).Now I need to add this in XCODE 8 so that when i host my app in Diawi.com so the URL will work in the devices which I have added.But I am not able to drag or import or install it.PLease tell me how will it work.
Just double click on Mobile provision profile Certificate with extension(.mobileProvision) file. It will install automatically. After that close your XCode and reopen it. Then you can select that provision profile Certificate under Signing in Build Settings. Or in General tab Signing select your team and click on Automatically manage signing. it will start working.
1) First install the certificates both for development and distribution.
2) Then install your development and adhoc provisioning profile you created.
3) Now switch to Xcode and select target project and then select General tab. Here turn off the automatically manage signing.
If everything is right with certificates and provisioning profiles, then your provisioning profile should be listed in drop down list when you set profiles for debug and release.
Earlier I was using Xcode 7 it used to show me the provisioning profile for the IPA file which I selected under build settings. But now after update to 7.1.1 whenever I make IPA file then it always show me iOS Team provisioning under provisioning profile section even I have selected the correct provisioning profile.
See screenshot:
Please tell me how to resolve the issue.
Edit:
In iOS Team Provisioning profile all the UDIDs are added which were previously added by me on developer account.
In developer.apple.com:
Go to Certificates, Identifiers & Profiles > Provisioning Profiles
Delete any provisioning profiles that are no longer needed.
Pay careful attention to those that match your app's bundle ID, for example, com.yourdomain.yourappname.
Make sure you have at most one provisioning profile for Development and at most one provisioning profile for Distribution.
Download each provisioning profile and double-click on it in Finder so that it gets installed.
In Xcode:
Go to Your Target > Build Settings > Code Signing
Set all values to be iOS Developer.
Go to Your Target > Build Settings > Provisioning Profile
Set all values to be Automatic.
In Xcode:
To test the changes, create an archive using Product > Archive.
After the archive is built, open the Window > Organizer and Export the archive.
Choose Developer Deployment.
Choose your team.
The provisioning profile display should now be correct for your app in the Summary window, the one that you have shown in your question.
Please follow the steps.
1.Open Xcode
2. then goto Xcode section
3. Select Preferences
4. Account
5. Select your account details
6. Click View Detail
7 .Sync details.
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.