Detecting TestFlight build on macOS

I currently use this hack to determine a TestFlight build on iOS:

https://stackoverflow.com/a/32238344/784615

Now that TestFlight also supports macOS, I wonder two things:

  • Is there a standard API to detect a TestFlight build? In general, a TestFlight framework would be HIGHLY desirable
  • If not, anyone knows a hack like the above that would work for macOS?

I ask because the in-app receipt is called "receipt" even for TestFlight builds on macOS.

Thanks in advance

Replies

Hi, I came up with a solution based on the code signing certificate check. According to my early tests, it works reliable. Can you confirm?