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

stopshinal picture stopshinal · Nov 9, 2014 · Viewed 92.9k times · Source

Fresh vanilla submodule install of Alamofire, using XCode6 and following directions to a T. Something here just isn't fitting right. The error i'm getting is "Could not build objective-c module "alamofire" on import alamofire. Here is a screen shot of the error i'm getting:

enter image description here And my configuration:

enter image description here

Answer

Daniel Larsson picture Daniel Larsson · Jan 5, 2015

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