xamarin-macios icon indicating copy to clipboard operation
xamarin-macios copied to clipboard

XCode 16 stores provisioning profiles in new location

Open filipnavara opened this issue 1 year ago • 2 comments

Provisioning profiles are no longer located in ~/Library/MobileDevice/Provisioning Profiles/. The directory is not necessarily wiped during Xcode update but it's no longer updated from the Xcode UI. The new location is ~/Library/Developer/Xcode/UserData/Provisioning Profiles.

Any code that probes the location should be updated.

I found only this one so far: https://github.com/xamarin/Xamarin.MacDev/blob/94c2c8c9884d14eee5eb2ffa93707638c314ad9a/Xamarin.MacDev/MobileProvision.cs#L60

filipnavara avatar Jun 24 '24 14:06 filipnavara

CC @emaf @mauroa

rolfbjarne avatar Jun 24 '24 14:06 rolfbjarne

CC @jstedfast as well

mauroa avatar Jun 24 '24 16:06 mauroa

any workaround? I can't sign my app...

Saccomani avatar Aug 08 '24 19:08 Saccomani

You could either copy the provisioning profiles into the old location or you could delete the old location and make it a symlink to the new location (not on a mac right now, so the paths might be reversed):

ln -s ~/Library/MobileDevice/Provisioning\ Profiles ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles

jstedfast avatar Aug 08 '24 20:08 jstedfast

We need to bump Xamarin.MacDev in xamarin-macios before we can close this (in progress already).

rolfbjarne avatar Aug 09 '24 16:08 rolfbjarne

Yea, that seemed to get auto-closed by GitHub rules

jstedfast avatar Aug 09 '24 17:08 jstedfast

Fixed in https://github.com/xamarin/xamarin-macios/pull/21010.

rolfbjarne avatar Aug 19 '24 11:08 rolfbjarne

You could either copy the provisioning profiles into the old location or you could delete the old location and make it a symlink to the new location (not on a mac right now, so the paths might be reversed):

ln -s ~/Library/MobileDevice/Provisioning\ Profiles ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles

Thanks for the tip, this helped alot. For others the original is backwards.

ln -s ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles ~/Library/MobileDevice/Provisioning\ Profiles

jadenrogers avatar Oct 27 '24 23:10 jadenrogers