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'
Always get build error : No such module 'Alamofire'
I was having this exact same problem. Please make sure that you are on Xcode 7.3 and using Swift 2.2.
You can check your Swift version using xcrun swift -version
. Updating Xcode to 7.3 should also automatically update Swift.
Updating Xcode resolved this issue for me.
No such module 'Alamofire' in Xcode 10
it's possible that the project you got doesn't include the Alamofire pod.
open terminal go to the directory of the Project and open the pods w\
open Podfile -a Xcode
check if the Alamofire pod is in the file, if not write the following
pod 'Alamofire'
save the file and write
pod install
in the terminal
if the Alamofire is already in the pod file then type
pod update
in the terminal, and that should solve your problem.
in case your Project doesn't have a Podfile use
pod init
that will create a Podfile in your project directory.
No such module 'Alamofire' When Importing the Alamofire Module To My Project
You have to open the project from workSpace (.xcworkspace
) not from xcodeproj
file after you successfully install the pods from terminal
Xcode: No Such Module 'Alamofire'
I think you are missing add Alamofire
in your tests targets
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'AppName' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for AppName
pod 'SwiftyJSON'
pod 'Alamofire', '4.4.0'
target 'AppNameTests' do
inherit! :search_paths
pod 'Alamofire', '4.4.0'
end
target 'AppNameUITests' do
inherit! :search_paths
pod 'Alamofire', '4.4.0'
end
end
Better would be
You can also make a configuration with all pods that are commons to your targets
# Uncomment this line to define a global platform for your project
platform :ios, '8.2'
# Uncomment this line if you're using Swift
use_frameworks!
# Define main pods.
def main_pods
#Your common pods here
pod 'Alamofire', '4.4.0'
end
target 'AppName' do
main_pods
#add here other pods specific for this target
end
target 'AppNameTests' do
main_pods
#add here other pods specific for this target
end
target 'AppNameUITests' do
main_pods
#add here other pods specific for this target
end
Hope this helps
Related Topics
Google Analytics 3.08 iOS Idfa Class Missing, Won't Collect Idfa
Gem Native Extension Error While Installing Cocoapods
Create Ssl Connection Using Certificate
Calling Function from Another Viewcontroller in Swift
Autolayout Aspect Ratio for Uiimageview/Uiview
How to Implement Uitableview's Swipe to Delete for Uicollectionview
How to Set Status Bar Tint Color on iOS 6
Is There Any Limitation to Distribution of Apps in iOS Enterprise Program
Pop the Current View Using Segues/Storyboard on iOS 5
Are There Any Analogues of [Nsstring Stringwithformat:] for Nsattributedstring
Detect Uiimageview Touch in Swift
Orienting iOS Splash Image to Landscape/Portrait According to Launch Orientation
Strong Reference to a Weak References Inside Blocks
Making Com.Apple.Coredata.Concurrencydebug 1 Work
Where Is the Run Script and Build Phase in Xcode
Passing Data to and from an Embedded Uiwebview
iOS Swift Converting Calendar Component Int Month to Medium Style String Month