No such module 'Alamofire' - Xcode 12

305 Views Asked by At

I'm trying to import Alamofire to a Swift 5 Xcode project (Xcode 12, iOS 14.4) but I'm getting the 'No such module'Alamofire'' error message.

The Cocoapods for the latest Alamofire and SwiftyJSON versions, which I added at the same time, both appear to have installed correctly and 'Import SwiftyJSON' is not throwing up the same error in Xcode.

Any ideas what is going on with this? Has Alamofire been replaced?

Any help would be greatly appreciated.

Many thanks in advance

1

There are 1 best solutions below

0
Chris On

It just seemed to sort itself out without any changes after numerous attempts at a clean build and closing and reopening xcode - weird