Created
November 2, 2017 07:28
-
-
Save palmin/53bc5d50212768ed59fc5622cd400999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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