Swift. Could not build objective-c module 'Alamofire'

Solution 1:

When this happens, just build the frameworks separately first. In your case:

  • Change the scheme to Alamofire
  • Build (⌘B)
  • Change back to your scheme
  • Run

Solution 2:

Go into Developer/Xcode/DerivedData and delete the folder for your framework. (Or just delete DerivedData itself)

If you have a build of you app in a running simulator you'll need to delete the app there.

Then Clean & Build