Error "No such module" in Xcode, although the framework is added to the project
Hi! I'm a beginner in iOS development and use Swift with Xcode. I encountered a problem: I added a framework (e.g., Alamofire) via Swift Package Manager, and also via CocoaPods in another project. Everything installs without errors, I see the framework in the dependency list, but when I try to import it in my class, Xcode gives an error: "No such module 'Alamofire'".
Here is the example code I have:
```swift
import UIKit
import Alamofire // <- error here "No such module 'Alamofire'"
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
AF.request("https://api.example.com/data").response { response in
print(response)
}
}
}
```
I checked: the framework is listed in the "Framewor
No answers yet.
Log in to leave an answer