"No Such Module 'Alamofire'" Xcode Won't Recognize Alamofire Framework

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!

No such module 'Alamofire' won't recognize framework

I know it's late answer, but I was facing same problem with Xcode 8 Swift 3.0. I follow this Alamofire link and added framework manually. Its working fine. One of my project stuck on 'no such module' error, I cleaned derived data (Cleaning derived data removed source files of Alamofire. I added it again in my project ;) ) and it works like charm :).

Followed instructions

  1. Download Alamofire
  2. Drag Alamofire project in your project directory
  3. Check alamofire deployment target same as your project
  4. Go to your project general settings, click on the + button under the "Embedded Binaries" section.
  5. You will see two different Alamofire.xcodeproj folders each with two different versions of the Alamofire.framework nested inside a Products folder. It does not matter which Products folder you choose from, but it does matter whether you choose the top or bottom Alamofire.framework.
  6. Select the top Alamofire.framework for iOS and the bottom one for OS X.
  7. And that's it! The Alamofire.framework is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.

Cannot install Alamofire in new Xcode Project. No Such module Alamofire

Make sure you haven't added any files from Alamofire to your project except for the Alamofire.xcodeproj

Here is step by step instruction:

  1. Download and unarchive Alamofire
  2. Copy the root folder of Alamofire to any subfolder of your project. Libs, for example.
  3. Drag and drop Alamofire.xcodeproj to your Xcode project
  4. Open project settings of your project, Build Phases pane, expand Target Dependencies section, and add Alamofire as new dependency
  5. Open General pane, expand Embedded Binaries section, and add Alamofire.framework
  6. import Alamofire // in your source file
  7. Alamofire.request(.GET, "http://httpbin.org/get") // use Alamofire

Alamofire No Such Module (CocoaPods)

Try this one.

For Swift 2.0 there is no need to add Alamofire.xcodeproj into your xcode. Simply copy and paste source folder from https://github.com/Alamofire and you are done.

or if you want to install Alamofire from Cocoapods then try below code.

  source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Alamofire', '~> 2.0'

Importing Alamofire 3.4 - No such module 'Alamofire'

Do import Alamofire and then do Build. I think it's helpful.



Related Topics



Leave a reply



Submit