AwaitKit icon indicating copy to clipboard operation
AwaitKit copied to clipboard

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

Open owenzhao opened this issue 3 years ago • 0 comments

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.

owenzhao avatar Mar 08 '21 03:03 owenzhao