0

I am integrating Almofire via cocoapods in my new swift project. After successful installation of Alamofire pod, i am unable to import it in my swift file. Xcode shows following error.

No such module 'Alamofire'

Following is my Podfile for reference

source 'https://github.com/CocoaPods/Specs.git'

# Uncomment this line to define a global platform for your project
 platform :ios, '9.0'
# Uncomment this line if you're using Swift
 use_frameworks!

target 'CoreDataSample' do
    pod 'Alamofire', '~> '3.4'
end

target 'CoreDataSampleUITests' do

end

I have already referred following issues in Almofire on github

  1. Issue #551
  2. Issue #1130

Also tried following things

  1. Project clean
  2. Project Build
  3. Removed Derived Data

Any advise would be appreciate.

Dipen Panchasara
  • 13,480
  • 5
  • 47
  • 57

1 Answers1

0

Try this inside your pod file

# Uncomment this line to define a global platform for your project
 platform :ios, '9.0'

target 'demoAlamofire' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for demoAlamofire

  pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire'

  target 'demoAlamofireTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'demoAlamofireUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

I hope this will help you.

Community
  • 1
  • 1
Anand Nimje
  • 6,163
  • 4
  • 24
  • 43