The Segfault
The Segfault

Reputation: 1040

Pod install keep installing Alamofire with a wrong version

Podfile:

platform :ios, '10.0'
use_frameworks!
target 'Netsil' do
  # Pods for Netsil

  # Upload
  pod 'SwiftyJSON', :git => 'https://github.com/acegreen/SwiftyJSON.git', :branch => 'swift3'
  pod 'Alamofire', '~> 4.0'

  # Login
  pod 'FacebookCore'
  pod 'FacebookLogin'
  pod 'FacebookShare'

  pod 'FBSDKCoreKit'
  pod 'FBSDKShareKit'
  pod 'FBSDKLoginKit'

  pod 'GoogleSignIn'
  pod 'Firebase/Auth'

  pod 'Fabric'
  pod 'TwitterKit'

end

I keep getting:

pod install
Analyzing dependencies
Downloading dependencies
Using Alamofire (4.2.0)
Using Bolts (1.8.4)
Using FBSDKCoreKit (4.18.0)
Using FBSDKLoginKit (4.18.0)

I want 4.0 not 4.2 ...

Upvotes: 0

Views: 674

Answers (1)

Fahim
Fahim

Reputation: 3556

Change the following line from:

pod 'Alamofire', '~> 4.0'

to:

pod 'Alamofire', '<= 4.0'

And you'll get Alamofire 4.0 :) I believe with the line you currently have, you will get anything from 4.0 up to 5.0 but not including 5.0 or higher ...

Upvotes: 3

Related Questions