Skip to content

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

@owenzhao

Description

@owenzhao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions