From 550bca42c171696ff2ee96582ed8fea18f1c4ec1 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Wed, 5 Sep 2012 11:57:53 +0200 Subject: [PATCH] Don't check for authorization if run from the iOS simulator --- Classes/BITUpdateManager.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/BITUpdateManager.m b/Classes/BITUpdateManager.m index d036572eb7..7f9b0a4ab4 100644 --- a/Classes/BITUpdateManager.m +++ b/Classes/BITUpdateManager.m @@ -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"];