“No such module 'Alamofire'” Xcode won't recognize Alamofire framework

ⅰ亾dé卋堺 提交于 2019-11-27 14:25:07

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 setting may this is helpful to you

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.

The target overrides the OTHER_LDFLAGS build setting.

Use the $(inherited) flag in TARGENTS -> Build Settings -> Framework Search Paths

in my case, i couldn't run archive after change bundle name. I've cleaned build folder and run pod install then everything worked fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!