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

Installation with CocoaPods Works but with Carthage doesn't by Xcode 12.4 #56

Open
owenzhao opened this issue Mar 8, 2021 · 0 comments

Comments

@owenzhao
Copy link

owenzhao commented Mar 8, 2021

The code is like this

import UIKit
import PromiseKit
import AwaitKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let urlRequest = URLRequest(url: URL(string: "https://zhaoxin.pro")!)
        
        if let (data, response) = try? await(URLSession.shared.dataTask(.promise, with: urlRequest)) { 
            let httpURLResponse = response as! HTTPURLResponse
        }
    }
}

on the if line, ".../ViewController.swift:19:40: Type of expression is ambiguous without more context" with Carthage build with xcframework.

With CocoaPods, everything is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant