diff --git a/security/SFHFKeychainUtils.m b/security/SFHFKeychainUtils.m index c56a35d..283841e 100644 --- a/security/SFHFKeychainUtils.m +++ b/security/SFHFKeychainUtils.m @@ -32,7 +32,7 @@ static NSString *SFHFKeychainUtilsErrorDomain = @"SFHFKeychainUtilsErrorDomain"; -#if TARGET_IPHONE_SIMULATOR & OBJC_API_VERSION < 2 +#if TARGET_IPHONE_SIMULATOR @interface SFHFKeychainUtils (PrivateMethods) + (SecKeychainItemRef) getKeychainItemReferenceForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error; @end @@ -40,7 +40,7 @@ + (SecKeychainItemRef) getKeychainItemReferenceForUsername: (NSString *) usernam @implementation SFHFKeychainUtils -#if TARGET_IPHONE_SIMULATOR & OBJC_API_VERSION < 2 +#if TARGET_IPHONE_SIMULATOR + (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error { if (!username || !serviceName) {