Don't check for authorization if run from the iOS simulator

This commit is contained in:
Andreas Linde 2012-09-05 11:57:53 +02:00
parent 3d4d0bc719
commit 550bca42c1

View File

@ -883,7 +883,12 @@
self.blockingView = nil;
return YES;
}
#if TARGET_IPHONE_SIMULATOR
NSLog(@"Authentication checks only work on devices. Using the simulator will always return being authorized.");
return YES;
#endif
BITUpdateAuthorizationState state = [self authorizationState];
if (state == BITUpdateAuthorizationDenied) {
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationDenied") image:@"authorize_denied.png"];