diff --git a/KifTests/ChatTester.m b/KifTests/ChatTester.m index 3c61400e9..2b890443a 100644 --- a/KifTests/ChatTester.m +++ b/KifTests/ChatTester.m @@ -171,7 +171,9 @@ [tester tapViewWithAccessibilityLabel:LOCALIZED(@"Photo library")]; // if popup "Linphone would access your photo" pops up, click OK. if ([ALAssetsLibrary authorizationStatus] == ALAuthorizationStatusNotDetermined) { +#if TARGET_IPHONE_SIMULATOR [tester acknowledgeSystemAlert]; +#endif } [tester choosePhotoInAlbum:@"Camera Roll" atRow:1 column:1];