FWIW, I just added a keychain sharing entitlement using Xcode 12.5, and it added the entitlements file with $(AppIdentifierPrefix)groupname (groupname is what I put in the entitlements UI). I don't know what value it's actually putting in there, as I can't find AppIdentifierPrefix anywhere else in the project.
Update: It's really hard to know what the string in my code should be to match what Xcode is generating for the entitlement.
Topic:
Privacy & Security
SubTopic:
General
Tags: