Replies: 2 comments
-
Hello @abhidev54 my suggestion is to use a different Xcode and CocoaPods version for your build. Currently, I see that you're building your app on a machine with Xcode 15.0.1, which runs macOS 13.5.2 and has iOS 17.0 preinstalled. But, based on your project requirements, iOS 17.4 and macOS 14.4, this build environment is incompatible. I recommend switching to a build machine with Xcode 16.3, as it comes with macOS 15.4 and the iOS 18.4 runtime preinstalled.
Please refer to the Codemagic machine specifications for Xcode 16.3 here |
Beta Was this translation helpful? Give feedback.
-
I'm tentatively closing the discussion since we haven't heard back from you. You can open the discussion again by replying to this message or opening a new discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
1- Upgrade flutter versions like below
flutter_web_auth_2: ^4.1.0
flutter: 3.29.2
2- will get error
Failed to build iOS app
Swift Compiler Error (Xcode): Incorrect argument label in call (have 'url:callback:completionHandler:', expected 'url:callbackURLScheme:completionHandler:')
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:77:61
Swift Compiler Error (Xcode): Type 'ASWebAuthenticationSession' has no member 'Callback'
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:77:109
Swift Compiler Error (Xcode): Incorrect argument label in call (have 'url:callback:completionHandler:', expected 'url:callbackURLScheme:completionHandler:')
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:79:61
Swift Compiler Error (Xcode): Type 'ASWebAuthenticationSession' has no member 'Callback'
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:79:109
Encountered error while archiving for device.
3- I even raised a ticket with flutter_web_auth_2 team as well, they seems pointing to problem with the build machine.
ThexXTURBOXx/flutter_web_auth_2#168
"Upgrading to 4.x
[...]
Migrated away from deprecated iOS and macOS functions (now iOS 17.4 and macOS 14.4 are required!)"
Expected results
Build should not fail with this error with flutter upgrade.
Actual results
Failed to build iOS app
Swift Compiler Error (Xcode): Incorrect argument label in call (have 'url:callback:completionHandler:', expected 'url:callbackURLScheme:completionHandler:')
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:77:61
Swift Compiler Error (Xcode): Type 'ASWebAuthenticationSession' has no member 'Callback'
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:77:109
Swift Compiler Error (Xcode): Incorrect argument label in call (have 'url:callback:completionHandler:', expected 'url:callbackURLScheme:completionHandler:')
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:79:61
Swift Compiler Error (Xcode): Type 'ASWebAuthenticationSession' has no member 'Callback'
/Users/builder/.pub-cache/hosted/pub.dev/flutter_web_auth_2-4.1.0/ios/Classes/SwiftFlutterWebAuth2Plugin.swift:79:109
Encountered error while archiving for device.
Build id (optional)
682422b4f3a849af26254e8e
Beta Was this translation helpful? Give feedback.
All reactions