Little snippet to know if application is installed via TestFlight

I found little snippet from twitter about how to know if application is installed via TestFlight.
Here, appStoreReceiptURL is an instance property, which we can find from main bundle.

Documentation
Documentation

Here, I am adding snippet for both Objective-C and Swift.

Objective-C

Swift

Happy Coding 🙂