-
Notifications
You must be signed in to change notification settings - Fork 96
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
Error: Type of expression is ambiguous without more context #123
Comments
Hi, Nghia please help me about this. |
Can you share with me some context:
|
Xcode version 14.2 |
post_install do |installer| |
Please update the Atlantis to the latest version 1.20.0. You're using an 1 years ago version 👍 |
Thanks a lot. |
func swizzleConnectionDidReceiveResponse(anyClass: AnyClass) {
//
// Have to explicitly tell the compiler which func
// because there are two different objc methods, but different argments
// It causes the bug: Ambiguous use of 'connection(:didReceive:)'
//
let selector: Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)!)
as (NSURLConnectionDataDelegate) -> (NSURLConnection, URLResponse) -> Void)
func swizzleConnectionDidReceiveData(anyClass: AnyClass) {
//
// Have to explicitly tell the compiler which func
// because there are two different objc methods, but different argments
// It causes the bug: Ambiguous use of 'connection(:didReceive:)'
//
let selector : Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)!)
as (NSURLConnectionDataDelegate) -> (NSURLConnection, Data) -> Void)
The text was updated successfully, but these errors were encountered: