swiftcocoapodsgoogle-signindeprecation-warningappauth

Deprecation Warning for AppAuth


I got some warning message. Most of them disappeared after updating related Pods. But these 3 warnings are still there. I don't have the AppAuth pod but the Firebase/Auth and Firebase/Core. What should I do to get rid of them?

Thanks,

Below is the Podfile.

=========================

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      end
    end
  end

target ‘test’ do
  # Comment the next line if you don't want to use dynamic frameworks
    use_frameworks!
  # use_modular_headers!

  # Pods for test

    pod 'Firebase'
    pod 'Firebase/Core'
    pod 'Firebase/Auth'
    pod 'GoogleSignIn'

    pod 'Firebase/Firestore'
    pod 'Firebase/Storage'

    pod 'Firebase/Crashlytics'
    pod 'Firebase/Analytics'

    pod 'Firebase/DynamicLinks'
    pod 'Firebase/Performance'

    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'

  target ‘testTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target ‘testUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

enter image description here

enter image description here


Solution

  • AppAuth is a dependency of GoogleSignIn that is designed to work on iOS 7 and above.

    Changing the version to 10 in the post_install script in the Podfile by deleting the minimum iOS version 7 causes the warning.

    Instead of deleting it, you might be able to eliminate the warning and also the Xcode 12 warning because of no iOS 8 support by changing the minimum version to 9:

    post_install do |pi|
        pi.pods_project.targets.each do |t|
          t.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
          end
        end
    end
    

    Thanks to https://stackoverflow.com/a/58367269/556617 for the post_install script.