Skip to content

Instantly share code, notes, and snippets.

@palmin
Created November 2, 2017 07:28
Show Gist options
  • Save palmin/53bc5d50212768ed59fc5622cd400999 to your computer and use it in GitHub Desktop.
Save palmin/53bc5d50212768ed59fc5622cd400999 to your computer and use it in GitHub Desktop.
// we check if we are running as beta-app by looking at path for receipt
NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSString *receiptURLString = [receiptURL path];
BOOL testFlight = ([receiptURLString rangeOfString:@"sandboxReceipt"].location != NSNotFound);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment