"No such module 'Alamofire'" Xcode won't recognize Alamofire framework "No such module 'Alamofire'" Xcode won't recognize Alamofire framework xcode xcode

"No such module 'Alamofire'" Xcode won't recognize Alamofire framework


Do the following things and you can import any swift file from "Pods"

1) Clean your project

2) Make sure that all your "Pods" > "Build Settings" > "Build Active Architecture Only" is set to "NO".

3) Don't run, just build your project.

4) Now, import any file from "Pods" to any swift file

E.g.: import Alamofire

5) Again, build project and it will work as expected. Finally, you can access it properties

Update:

For the updated question, I hope you are using Xcode 7.3 so please update the Alamofire to Swift 2.2

Hope this helps!


Please check this screenshot and compare to your build settingmay this is helpful to you

enter image description here


For me the solution was to open the "App".xcworkspace as pointed by the cocoapods documentation

The steps was:

  1. Close project
  2. Close xcode
  3. Go to terminal
  4. type "open |App|.xcworkspace"

When I opened Xcode it was still pointing the error then I built the project (cmd+b) and everything is fine now.