Add additional check for iOS 6 devices in helper method

This commit is contained in:
Lukas Spieß
2015-11-10 17:06:13 +01:00
parent 5d81bc60d5
commit f288a36947

View File

@@ -275,6 +275,9 @@ BOOL bit_isAppStoreReceiptSandbox(void) {
#if TARGET_IPHONE_SIMULATOR
return NO;
#else
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) {
return NO;
}
NSURL *appStoreReceiptURL = NSBundle.mainBundle.appStoreReceiptURL;
NSString *appStoreReceiptLastComponent = appStoreReceiptURL.lastPathComponent;