Updating to latest version of CocoaPods?

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

    Non of the above solved my problem, you can check pod version using two commands

    1. pod --version
    2. gem which cocoapods

    In my case pod --version always showed "1.5.0" while gem which cocopods shows Library/Ruby/Gems/2.3.0/gems/cocoapods-1.9.0/lib/cocoapods.rb. I tried every thing but unable to update version showed from pod --version. sudo gem install cocopods result in installing latest version but pod --version always showing previous version. Finally I tried these commands

    1. sudo gem update
    2. sudo gem uninstall cocoapods
    3. sudo gem install cocopods
    4. pod setup``pod install

    catch for me was sudo gem update. Hopefully it will help any body else.

提交回复
热议问题