xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.45k stars 511 forks source link

XCode 16 stores provisioning profiles in new location #20771

Closed filipnavara closed 1 month ago

filipnavara commented 3 months ago

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

rolfbjarne commented 3 months ago

CC @emaf @mauroa

mauroa commented 3 months ago

CC @jstedfast as well

Saccomani commented 1 month ago

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

jstedfast commented 1 month ago

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
rolfbjarne commented 1 month ago

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

jstedfast commented 1 month ago

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

rolfbjarne commented 1 month ago

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