How to add provison Profile Certificate in Xcode 8.2.1 - ios

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.

Related

Can't use the iOS distribution in Xcode

In my Xcode 9 project I have the Automatically manage signing checked. I want to sign the application with the iOS distribution certificate. For some reasons, when I was creating the certificate I entered the name and email of another person. In the keychain Access I can see the public and private keys with the name of that person and under the private one, the iPhone distribution certificate. The problem is that in Xcode when I select the Team, I'm only getting the iPhone developer signing certificate and not the the distribution one. But from the Build Setting I can see the iPhone distribution in the select list of the Code Signing Identity. Once I select it, Xcode detect a conflict of the provisioning profile (because I change it manually and the Automatically manage signing is checked). I tried the solution of check then uncheck it and select the team but the problem is still here.
Make sure your Scheme under the Left top corner of App name Dropdown-->Edit Scheme is enabled to Release and not Debug for Archive and Testing also so automatically your Distribution is selected.
When you use the Automatic provisioning by default you are getting two profiles generated in Xocde One when you connect the device it used Dev Profile for debugging, but when you archive the build it autogenerates Distribution profile. If you have enterprise account, I would recommend having a universal distribution profile created and not Adhoc as it will always have to be updated with new Device ID added to be regenerated and recompiled the old app.
you just uncheck "Automatically signing" option. Once you uncheck only profile selection option will be enabled. Select distribution profiles as shown in image.

Xcode 8.3 / Xcode 9.0 Refresh provisioning profile devices

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.

Provisioning profile issue in Xcode 7.1.1?

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.

Xcode 6 - Can't pick signing certificate/provisioning profile for Ad-Hoc distribution. Always taken default

To distribute the app we are using Xcode 6.0.1, where we encountered some issues by using the following process:
Added App-Id and distribution provision profile under developer program.
Chose provision profile under build settings and Archive application.
Chose Export option to do Ad-HocDistribute.
But with Xcode 6.0.1, this workflow was changed a bit. I couls still select the Ad-Hoc distribution option, but I cannot select the provisioning profile which I have created under developer program against my App-ID. There were no listing of provisional profile as we use to do in Xcode 5 version.
The Xcode 6.0.1 has tried to match the provisional profile from the dev-program and it returns message as no matching certificate and it automatically created identity as XC Ad Hoc * profile. Once I chose the Export option the XC Ad Hoc* profile has been created automatically under the distribution provision profile option in dev-program.
Under the provision profile all devices has been selected which I have added and listing total devices under my testflight application. Please assist me how to choose my provision profile which I have already created specifically for my application. Its really consume my whole day.
Xcode wanted to automatically sign with the default "XC com.*" wildcard provisioning profile instead of the explicit profile that already had.
To fix this, I just re-generated the profile on the Apple Developer Portal:
1) Go to developer.apple.com and find the distribution provisioning profile you want to use.
2) Select it, click "Edit", re-name the profile, and click "Generate".
3) Download the provisioning profile to the Desktop and drag it onto the Xcode 6 icon.
4) Re-start Xcode 6.
5) Open the organizer window and click "Submit" on the archive you built. Xcode will automatically pick your explicit profile instead of the generic one.
In Xcode 7 try to select "Use local signing assets" when selecting team. In my case it automatically selected custom Ad-Hoc profile, instead of XC Ad-Hoc*
It's quite tricky but in your app build settings, you don't have the good provisioning and/or the good code signing identity for the archive mode (RELEASE) and maybe be the bad team too. You have to re set all this things and re archive. You know it's good when Xcode show the good certificate.
Hope you will export your application.
Organizer -> Export worked for me as Organizer -> Upload to App Store and Validate were picking Xcode generated provisioning every-time.
Similar topic discussed here.

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!

Resources