Can I have my MAS and my "Indie" app share the same credentials for TCC (GateKeeper)?

I release my app both in the MAS and on my website. I use the same signing credentials, but necessarily different certs (Apple Development vs. Developer ID).

When I run the MAS app and then run the other version, or vice versa, I need to re-authenticate the many privacy permissions each time (Finder AppleScript, Network browse, Full Disk Access), which is tedious and keeps causing trouble for other users because some of these require a tcc reset (which my app currently invokes manually, which I consider a hack, though).

So, am I doing something wrong or is it really no possible to have both signed apps use the same identity with TCC?

Answered by DTS Engineer in 914252022

It depends on what you mean by “identity”. macOS generally tracks your code’s identity via its designated requirement (DR). App Store apps and Developer ID apps have mutually compatible DRs, as explained in TN3127 Inside Code Signing: Requirements. So, this stuff typically Just Works™.

There are, however, two gotchas:

  • Not all privileges are tracked by the app’s DR.
  • A development-signed app’s DR is not mutually compatible with the other two.

The latter explains the majority of the misbehaviour you’re reporting. Fortunately, it only affects folks running development signed code.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

It depends on what you mean by “identity”. macOS generally tracks your code’s identity via its designated requirement (DR). App Store apps and Developer ID apps have mutually compatible DRs, as explained in TN3127 Inside Code Signing: Requirements. So, this stuff typically Just Works™.

There are, however, two gotchas:

  • Not all privileges are tracked by the app’s DR.
  • A development-signed app’s DR is not mutually compatible with the other two.

The latter explains the majority of the misbehaviour you’re reporting. Fortunately, it only affects folks running development signed code.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

If you want to release two different versions of the same app, make sure to use a different bundle ID for each.

Should a TestFlight app be using compatible DRs with one from
the App Store, too?

It seems that you’ve tested this and discovered that the answer is “Yes”. Cool.

But just as a historical curiosity, there was a bug that caused problems with this back in the day. See this thread.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Quinn,

While I can confirm that my notarized Indie app is compatible with the MAS version, the TestFlight build is not: It causes the same incompatibility for Full Disk Access permissions as the Dev ID builds are causing.

But you suggested that TestFlight should share the DR, right?

I just tried this on both 15.8.4 and 27.2.1, and the TestFlight builds are not compatible with the MAS and Indie builds regarding TCC. The linked thread suggests this was fixed in macOS 13, though, or do I misunderstand this?

Even worse - the System Setting's FDA panel shows that the app does have Full Disk Access even though it doesn't actually have it, which makes this so much worse for the customer (in previous versions I worked around this by invoking "tcc reset" to clear all permissions so that the user is getting less confused - I removed it after your previous reply that suggested to me that this won't be an issue any more but that was wrong, it appears).

If you believe it should work, what things can I do to help analyze this? Or would you like to take a look? Both latest Indie and Testflight versions are available through findanyfile.app/beta