Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check if the app is installed from TestFlight
// Should be working for free apps too
func isTestFlight() -> Bool {
guard let appStoreReceiptURL = Bundle.main.appStoreReceiptURL else {
return false
}
return appStoreReceiptURL.lastPathComponent == "sandboxReceipt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.