Updating to latest version of CocoaPods?

前端 未结 12 1886
误落风尘
误落风尘 2020-12-07 07:46

I\'m having some issues installing Alamofire 4.0 into my project.

I\'ve got the latest version of Xcode, running Swift 3

12条回答
  •  春和景丽
    2020-12-07 08:05

    This is a really quick & detailed solution

    Open the Terminal and execute the following to get the latest stable version:

    sudo gem install cocoapods
    

    Add --pre to get the latest pre release:

    sudo gem install cocoapods --pre
    

    Incase any error occured

    Try uninstall and install again:

    sudo gem uninstall cocoapods
    sudo gem install cocoapods
    

    Run after updating CocoaPods

    sudo gem clean cocoapods
    

    After updating CocoaPods, also need to update Podfile.lock file in your project.

    Go to your project directory

    pod install
    

提交回复
热议问题