diff --git a/PhoneAuth/FirebasePhoneAuthUI/FUICodeField.m b/PhoneAuth/FirebasePhoneAuthUI/FUICodeField.m index 227b54591ec..b5110c267ab 100644 --- a/PhoneAuth/FirebasePhoneAuthUI/FUICodeField.m +++ b/PhoneAuth/FirebasePhoneAuthUI/FUICodeField.m @@ -59,11 +59,9 @@ - (void)setUpFromNib { UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; self.inputField.userInteractionEnabled = YES; -#if __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0 if (@available(iOS 12.0, *)) { self.inputField.textContentType = UITextContentTypeOneTimeCode; } -#endif // __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0 // Initialization code _codeEntry = [NSMutableString string]; @@ -175,11 +173,9 @@ - (CGSize)intrinsicContentSize { } - (UITextContentType _Null_unspecified)textContentType { -#if __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0 if (@available(iOS 12.0, *)) { return UITextContentTypeOneTimeCode; } -#endif // __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0 return nil; } diff --git a/UITests/FirebaseUISample.xcodeproj/project.pbxproj b/UITests/FirebaseUISample.xcodeproj/project.pbxproj index e0603103bc8..09fe5c0f10f 100644 --- a/UITests/FirebaseUISample.xcodeproj/project.pbxproj +++ b/UITests/FirebaseUISample.xcodeproj/project.pbxproj @@ -600,6 +600,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; @@ -659,6 +660,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";