Updating to latest version of CocoaPods?

前端 未结 12 1891
误落风尘
误落风尘 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:18

    For those with a sudo-less CocoaPods installation (i.e., you do not want to grant RubyGems admin privileges), you don't need the sudo command to update your CocoaPods installation:

    gem install cocoapods
    

    You can find out where the CocoaPods gem is installed with:

    gem which cocoapods
    

    If this is within your home directory, you should definitely run gem install cocoapods without using sudo.

    Finally, to check which CocoaPods you are currently running type:

    pod --version
    

提交回复
热议问题