On macOS you can get your code signing entitlements using
SecCodeCopySigningInformation. This post has an example. You can then look in the entitlements for the
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"