auth0 / auth0-flutter

Auth0 SDK for Flutter
https://pub.dev/documentation/auth0_flutter/latest/
Apache License 2.0
59 stars 39 forks source link

compiling for iOS 12.0, but module 'Auth0' has a minimum deployment target of iOS 13.0 #280

Closed elemental21 closed 10 months ago

elemental21 commented 1 year ago

Checklist

Description

I'm getting the same issue as this one for React Native. https://github.com/auth0/react-native-auth0/issues/646

Also reported here: https://community.auth0.com/t/failed-to-create-ios-build-using-auth0-flutter/109630

The error: Swift Compiler Error (Xcode): Compiling for iOS 12.0, but module 'Auth0' has a minimum deployment target of iOS 13.0: /Users/christopherrobinson/src/PicdmoFlutter/build/ios/Debug-DevEnvironment-iphoneos/Auth0/Auth0.framework/Modules/Auth0.swiftmodule/arm64-apple-ios.swiftmodule

Reproduction

  1. Do a pod update
  2. Try to run your application with auth0-flutter

Receive this error: Swift Compiler Error (Xcode): Compiling for iOS 12.0, but module 'Auth0' has a minimum deployment target of iOS 13.0: /Users/christopherrobinson/src/PicdmoFlutter/build/ios/Debug-DevEnvironment-iphoneos/Auth0/Auth0.framework/Modules/Auth0.swiftmodule/arm64-apple-ios.swiftmodule

Additional context

What I've tried:

I set that value to 13,14,15 with no success.

What DID work but is not a good solution:

Flutter clean, build and it works.

auth0_flutter version

1.2.1

Flutter version

3.7.11

Platform

iOS

Platform version(s)

No response

Widcket commented 1 year ago

Hi @elemental21, thanks for raising this.

You can work around this (until we put out another release) by setting specific versions of Auth0.swift, JTWDecode.swift, and SimpleKeychain in your Podfile. Or, by adding the following to your Podfile, as per https://github.com/auth0/react-native-auth0/issues/646#issuecomment-1593455702:

installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      end
    end
Widcket commented 10 months ago

The versions have been pinned in v1.3.0.