Detect if app was installed through TestFlight

Hey!

I'm looking for a solution to be able to check if the current running app was installed from TestFlight or not. I have found a working solution for iOS but now that TestFlight is supporting macOS as well, the same trick is not working on macOS. Do you have a good solution on macOS?

Thanks!

What solution are you using for iOS?

I'm using a solution based on this: https://stackoverflow.com/questions/26081543/how-to-tell-at-runtime-whether-an-ios-app-is-running-through-a-testflight-beta-i

TLDR, checking if Bundle.main.appStoreReceiptURL?.lastPathComponent == "sandboxReceipt"

Hey! Did you find the solution?

Detect if app was installed through TestFlight
 
 
Q