Provisioning Profiles - codepath/ios_guides GitHub Wiki
Provisioning Profiles
Starting with Xcode 16, provisioning profiles are stored in ~/Library/Developer/Xcode/UserData/Provisioning Profiles. On Xcode 15 and earlier, they were stored in ~/Library/MobileDevice/Provisioning Profiles.
If you wish to view the contents of a profile, type:
security cms -D -i <XXXX.mobileprovision>
Starting over
Sometimes you may have obsolete provisioning profiles (i.e removed, expired, etc.):
rm -rf ~/Library/MobileDevice/Provisioning Profiles
You can also go to Xcode and visit Xcode->Settings (or Preferences on macOS 12 and earlier) and remove your attached account, then re-add it.
If you want to find out what code identities currently installed, you can type:
security find-identity -v -p codesigning