Cannot install Alamofire 4.0 in Xcode 8.0 Using CocoaPods

前端 未结 2 1073
攒了一身酷
攒了一身酷 2021-01-19 07:37

I need to upgrade one project to Swift 3.0, that has some libraries by Cocodpods. So, I\'ve removed all links related with Cocoapods and recreate pod file using pod init and

2条回答
  •  星月不相逢
    2021-01-19 07:54

    try sudo gem install cocoapods --pre

    the pod file should look like

    source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, '10.0'
    use_frameworks!
    
    target 'YourAPP' do
        pod 'Alamofire', '~> 4.0'
        pod 'SwiftyJSON', :git => 'https://github.com/acegreen/SwiftyJSON.git', :branch => 'swift3'
        pod 'NetReachability'
    end
    

提交回复
热议问题