Skip to content

Fix deprecation warnings in PhoneAuthUI #1191

@paulb777

Description

@paulb777

After updating to iOS 13 minimum, several deprecations warnings show up. Fix the deprecations and remove the --allow-warnings from the phoneauth.yml pod job.

  • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:303:41: warning: 'statusBarFrame' is deprecated: first deprecated in iOS 13.0 - Use the statusBarManager property of the window scene instead. [-Wdeprecated-declarations]
    • NOTE | xcodebuild: /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:131:38: note: 'statusBarFrame' has been explicitly marked deprecated here
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:307:11: warning: 'beginAnimations:context:' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • NOTE | xcodebuild: /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:655:1: note: 'beginAnimations:context:' has been explicitly marked deprecated here
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:310:11: warning: 'setAnimationDuration:' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • NOTE | xcodebuild: /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:660:1: note: 'setAnimationDuration:' has been explicitly marked deprecated here
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:311:11: warning: 'setAnimationCurve:' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • NOTE | xcodebuild: /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:663:1: note: 'setAnimationCurve:' has been explicitly marked deprecated here
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:318:11: warning: 'commitAnimations' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • NOTE | xcodebuild: /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:656:1: note: 'commitAnimations' has been explicitly marked deprecated here
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:324:41: warning: 'statusBarFrame' is deprecated: first deprecated in iOS 13.0 - Use the statusBarManager property of the window scene instead. [-Wdeprecated-declarations]
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:327:11: warning: 'beginAnimations:context:' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:330:11: warning: 'setAnimationDuration:' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:331:11: warning: 'setAnimationCurve:' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]
    • WARN | xcodebuild: /Users/runner/work/FirebaseUI-iOS/FirebaseUI-iOS/FirebasePhoneAuthUI/Sources/FUIPhoneVerificationViewController.m:336:11: warning: 'commitAnimations' is deprecated: first deprecated in iOS 13.0 - Use the block-based animation API instead [-Wdeprecated-declarations]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions