Search code examples
iosswift3alamofirexcode8

Alamofire install failed - Xcode 8.1


Recently upgraded to XCode 8.1 trying to install Alamofire pod for a new project. Podfile:

 source 'https://github.com/CocoaPods/Specs.git'
 platform :ios, '10.0'

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

# Pods for app

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

 end

And my terminal responds: image

so what can I do?

--Update-- also tried pod 'Alamofire', '~> 4.0' here is the result

I did the pod repo update it doesn't do anything at all


Solution

  • Edit your podFile as below and just install the pods using pod install --verbose command if still error exists then update your repo with pod repo update then try again.

     source 'https://github.com/CocoaPods/Specs.git'
     platform :ios, '10.0'
    
     target 'app' do
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
     use_frameworks!
    
    # Pods for app
    
     pod 'Alamofire'
    
     end