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
- Download Alamofire
- Drag Alamofire project in your project directory
- Check alamofire deployment target same as your project
- Go to your project general settings, click on the + button under the "Embedded Binaries" section.
- 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.
- Select the top Alamofire.framework for iOS and the bottom one for OS X.
- 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:
- Download and unarchive Alamofire
- Copy the root folder of Alamofire to any subfolder of your project. Libs, for example.
- Drag and drop Alamofire.xcodeproj to your Xcode project
- Open project settings of your project, Build Phases pane, expand Target Dependencies section, and add Alamofire as new dependency
- Open General pane, expand Embedded Binaries section, and add Alamofire.framework
import Alamofire
// in your source fileAlamofire.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
Swiftui - Animations Triggered Inside a View That's in a List Doesn't Animate the List as Well
Parse Multipart Response for Image Download in iOS
Xcode UI Testing Error Keyboard
How to Handle Push Notifications If the Application Is Already Running
iOS 9 "Fbauth2" Missing from Info.Plist
How to Open the Imagepicker in Swiftui
Local and Push Notifications in iOS Version Compatible
Radial Gradient Background in Swift
When Exactly Do Implicit Animations Take Place in iOS
Swift - Compressing Video Files
Uitextfield in Uialertcontroller (Border, Backgroundcolor)
How to Convert Date Like \/Date(1440156888750-0700)\/ to Something That Swift Can Handle
Datefromstring Returns Nil for Some Values
Xcode Debugger Doesn't Print Objects and Shows Nil, When They Aren'T
iOS - 'Myproject-Swift.H' File Not Found When Running Unit Tests for Swift