Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github workflow failed - Failed to build iOS app #87

Open
3 tasks done
ic-autosense-team opened this issue Nov 18, 2024 · 1 comment
Open
3 tasks done

Github workflow failed - Failed to build iOS app #87

ic-autosense-team opened this issue Nov 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ic-autosense-team
Copy link

Checklist

  • The issue can be reproduced in the attached sample application in the repository.
  • I have read the relevant SDK documentation and have not found a suitable solution or answer.
  • I agree to the terms within the SAP Code of Conduct.

Description

With gigya_flutter_plugin version 1.0.8, getting error failed to build iOS app

Swift Compiler Error (Xcode): Incorrect argument label in call (have 'url:callback:completionHandler:', expected 'url:callbackURLScheme:completionHandler:')
/Users/runner/work///ios/Pods/Gigya/GigyaSwift/Global/Providers/WebLogin/SsoLoginWrapper.swift:210:53

Swift Compiler Error (Xcode): Type 'String?' has no member 'customScheme'
/Users/runner/work///ios/Pods/Gigya/GigyaSwift/Global/Providers/WebLogin/SsoLoginWrapper.swift:210:75

Reproduction

  1. When we run Github worflow using Fastlane
  2. Workflow fails in iOS but works in Android.

Additional context

No response

SDK version

1.0.8

Android/iOS

iOS

@ic-autosense-team ic-autosense-team added the bug Something isn't working label Nov 18, 2024
@QRCharlie
Copy link

Hello, same problem both with 1.0.8 and 1.0.9.

Here's a possible solution: modify the Gigya POD file SsoLoginWrapper.swift at line 210 as follows

if #available(iOS 17.4, *) {
session = ASWebAuthenticationSession.init(url: url, callbackURLScheme: SsoLoginWrapper.callbackURLScheme, completionHandler: handler)
} else {
session = ASWebAuthenticationSession(url: url, callbackURLScheme: SsoLoginWrapper.callbackURLScheme, completionHandler: handler)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants