How to use a specific version of CocoaPods

前端 未结 2 939
谎友^
谎友^ 2021-01-31 04:21

Is it possible to somehow specific the version of CocoaPods I\'d like to use when upgrading or installing a Podfile? I\'ve encountered several times where Podfiles work correctl

2条回答
  •  不思量自难忘°
    2021-01-31 04:56

    Since CocoaPods is installed through RubyGems you can use their mechanisms for doing this. As outlined here you can do this:

    pod _0.34.0_ install
    

    You can verify this is working with:

    pod _0.34.0_ --version
    

    Also I would highly advise against doing this at all. I would definitely recommend you keep CocoaPods up to date and change your Podfile as needed to adapt to new versions. At anytime your old version could stop working as expected if we bump the minimum version number.

提交回复
热议问题