"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!
For me the solution was to open the "App".xcworkspace as pointed by the cocoapods documentation
The steps was:
- Close project
- Close xcode
- Go to terminal
- 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.