Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error installing Provisioning Profile on mac

I am having a Xamarin forms ios app with push notifications enabled it works fine with a Distribution provisioning profile but not with the Development profile. I have uploaded the certificates for Development and Distribution in the Identifier of my app on apple account. Now when I am downloading and installing the profile which is using that App ID(Identifier) I am getting the below error every time:

Failed to install one or more provisioning profiles on this device.

Please ensure the provisioning profile is configured for this device. If not, please try to generate a new profile.

I am getting this error on installing every profile. mac version is 10.15.4 and Xcode 11.4 (11E146).

I have tried the Download Manual Profiles option in Xcode preferences for my account. Please help me with fixing this blocker !!

like image 813
Siddhant maurya Avatar asked Apr 17 '20 06:04

Siddhant maurya


People also ask

What is a provisioning profile Mac?

Apple's definition: A provisioning profile is a collection of digital entities that uniquely ties developers and devices to an authorized iPhone Development Team and enables a device to be used for testing.

Where are provisioning profiles installed Mac?

All your provisioning profiles should be located in ~/Library/MobileDevice/Provisioning Profiles .


Video Answer


2 Answers

I also experience the same issue and I am not in a situation to delete all provisioning profiles (in ~/Library/MobileDevice/Provisioning Profiles/)

Instead I deleted the old profile with same uuid (You can open a provisioning profile in TextEdit and find UUID or Just tap space mac will Show quick display with all details)

Then I downloaded the new profile, rename with uuid of the new profile (.mobileprovision) and then copy to provisioning profiles folder (~/Library/MobileDevice/Provisioning Profiles/)

Then I am able to select the profile in Xcode and use it.

like image 161
Naveen Shan Avatar answered Oct 21 '22 04:10

Naveen Shan


I even didn't have any provisioning profiles with the same uuid, but copying it manualy did the job. This is my example:

   cd ~/Library/MobileDevice/Provisioning\ Profiles

   cp ~/Downloads/YourAppsProvProf.mobileprovision ./2a3cbed1-dbfc-42c8-8ac6-54c10f1d99a0.mobileprovision

(I've replaced uuid with fake one to avoid providing real data on stackoverflow. You need to select provisioning profile in finder and switch finder to column view, then you can see profile's details, eg. its uuid)

like image 44
Rad Avatar answered Oct 21 '22 03:10

Rad