AwaitKit
AwaitKit copied to clipboard
Installation with CocoaPods Works but with Carthage doesn't by Xcode 12.4
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.