title: Can an iOS app read its own entitlements at runtime?
body: <p>Can an iOS app discover, inspect, or otherwise read its own entitlements at runtime?</p>
  
  <p>Ideally, I could read the whole (processed) contents of my .entitlements file as a plist. Getting just the app identifier prefix would be an acceptable second-best.</p>
  
  <p>Goals here include: allowing the app to be signed with various app identifier prefixes, without needing to make a matching change in code; and to act differently in the presence or absence of shared keychain access groups. This is library code, so the less I impose on the client app's configuration, the better.</p>