Skip to content

Commit 98393f0

Browse files
authored
Disable LAContext attribute in simulator (#91)
1 parent a9edb63 commit 98393f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SimpleKeychain/A0SimpleKeychain.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ - (NSMutableDictionary *)baseQuery {
300300
(__bridge id)kSecAttrService: self.service,
301301
(__bridge id)kSecUseAuthenticationUI: (__bridge id)kSecUseAuthenticationUIAllow,
302302
} mutableCopy];
303-
304-
#if A0LocalAuthenticationCapable
305-
[attributes setObject:_localAuthenticationContext forKey:(__bridge id)kSecUseAuthenticationContext];
306-
#endif
307-
303+
308304
#if !TARGET_IPHONE_SIMULATOR
309305
if (self.accessGroup) {
310306
attributes[(__bridge id)kSecAttrAccessGroup] = self.accessGroup;
311307
}
308+
309+
#if A0LocalAuthenticationCapable
310+
attributes[(__bridge id)kSecUseAuthenticationContext] = self.localAuthenticationContext;
311+
#endif
312312
#endif
313313

314314
return attributes;

0 commit comments

Comments
 (0)