Xcode uses profiles in the old location, but if a profile is updated (e.g. if registering a new device), then it is stored in the new location and isn't findable by local_provisioning_profile.
Fixed: Xcode 16 stores downloaded provisioning profiles in a new location on disk, at ~/Library/Developer/Xcode/UserData/Provisioning Profiles. Xcode will still load previously downloaded profiles from the previous location. (54347894)
With Xcode 16 the location of the Xcode-managed provisioning profiles changed from:
to:
which breaks
provisioning_profile_repository
used bylocal_provisioning_profile
: https://github.com/bazelbuild/rules_apple/blob/08f5805de4d3333dbb0de90e8d2d18e4ba94ddd5/apple/internal/local_provisioning_profiles.bzl#L8-L9Xcode uses profiles in the old location, but if a profile is updated (e.g. if registering a new device), then it is stored in the new location and isn't findable by
local_provisioning_profile
.https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes#Signing--Distribution
Workaround