Hmmm, I don’t think this is going to work. Here’s what I did to test it:
I went to the Certificates, Identifiers & Profiles page on the developer web site.
On the left, I selected Identifiers.
I added a new App ID, enabling Sign In with Apple.
On the left, I selected Profiles.
I generated a new macOS App Development profile using the App ID from step 3. I downloaded it as
Test129263-MASDev.provisionprofile
.I repeated the previous step wth a Developer ID profile, naming it
Test129263-DevID.provisionprofile
.I dumped the entitlements whitelisted by both profiles:
% security cms -D -i Test129263-MASDev.provisionprofile
…
<dict>
…
<key>Entitlements</key>
<dict>
<key>com.apple.application-identifier</key>
<string>SKMME9E2Y8.com.example.apple-samplecode.Test129263</string>
<key>keychain-access-groups</key>
<array>
<string>SKMME9E2Y8.*</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>SKMME9E2Y8</string>
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
</dict>
…
</dict>
</plist>
% security cms -D -i Test129263-DevID.provisionprofile
…
<dict>
…
<key>Entitlements</key>
<dict>
<key>com.apple.application-identifier</key>
<string>SKMME9E2Y8.com.example.apple-samplecode.Test129263</string>
<key>keychain-access-groups</key>
<array>
<string>SKMME9E2Y8.*</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>SKMME9E2Y8</string>
</dict>
…
</dict>
</plist>
.
As you can see, the macOS App Development profile includes the
com.apple.developer.applesignin
entitlement but the Developer ID one does not.
In my experience this sort of thing is not uncommon. Apple has to explicitly enable entitlements for use with Developer ID. I don’t support Sign In with Apple, so I don’t know whether it was deliberately omitted or not. Either way, the path forward is the same: File a bug report requesting that this be made to work.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"