MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
269 stars 239 forks source link

iOS 16 - Unable to build after Xcode to 14.0 Build 14A309 & Flutter 3.3.0. #374

Closed samtoya closed 1 year ago

samtoya commented 1 year ago

$ flutter run Launching lib/main.dart on iPhone 14 Pro in debug mode... Running pod install... 2,962ms Running Xcode build... Xcode build done. 36.9s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED

Xcode's output: ↳ Writing result bundle at path: /var/folders/s9/362jp4cs7nn44ktk05s7wl3h0000gn/T/flutter_tools.wPGrjK/flutter_ios_build_temp_dirFqxGe1/temporary_xcresult_bun dle

/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:33:3: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
  SFAuthenticationSession *_authenticationVC;
  ^~~~~~~~~~~~~~~~~~~~~~~
  ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:115:7: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
      SFAuthenticationSession *authenticationVC =
      ^~~~~~~~~~~~~~~~~~~~~~~
      ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:116:37: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
          [[SFAuthenticationSession alloc] initWithURL:requestURL
                                    ^~~~~
                                    ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:152:58: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
    openedUserAgent = [[UIApplication sharedApplication] openURL:requestURL];
                                                         ^~~~~~~
                                                         openURL:options:completionHandler:
In module 'UIKit' imported from /Users/samtoya/Code/FlutterProjects/wizjobs/ios/Pods/Target Support
Files/flutter_appauth/flutter_appauth-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:175:3: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
  SFAuthenticationSession *authenticationVC = _authenticationVC;
  ^~~~~~~~~~~~~~~~~~~~~~~
  ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
5 warnings generated.
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:33:3: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
  SFAuthenticationSession *_authenticationVC;
  ^~~~~~~~~~~~~~~~~~~~~~~
  ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:115:7: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
      SFAuthenticationSession *authenticationVC =
      ^~~~~~~~~~~~~~~~~~~~~~~
      ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:116:37: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
          [[SFAuthenticationSession alloc] initWithURL:requestURL
                                    ^~~~~
                                    ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
           ^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:152:58: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
    openedUserAgent = [[UIApplication sharedApplication] openURL:requestURL];
                                                         ^~~~~~~
                                                         openURL:options:completionHandler:
In module 'UIKit' imported from /Users/samtoya/Code/FlutterProjects/wizjobs/ios/Pods/Target Support
Files/flutter_appauth/flutter_appauth-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:175:3: warning: 'SFAuthenticationSession' is deprecated: first deprecated in iOS 12.0
[-Wdeprecated-declarations]
  SFAuthenticationSession *authenticationVC = _authenticationVC;
  ^~~~~~~~~~~~~~~~~~~~~~~
  ASWebAuthenticationSession
In module 'SafariServices' imported from
/usr/local/Caskroom/flutter/3.3.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.0/ios/Classes/OIDExternalUser
AgentIOSNoSSO.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Li
brary/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h:48:12: note: 'SFAuthenticationSession' has been
explicitly marked deprecated here
@interface SFAuthenticationSession : NSObject
MaikuB commented 1 year ago

Everything you've posted there are warnings not errors. If you can't build the app on your environment then you'll need to investigate and resolve it as the plugin doesn't have compatibility issues with either Flutter 3.3.0 or Xcode 14. The build agents for the example use the same setup and i've been able to build an IPA with the same setup too. I would also expect a lot more people to report such issues