In fact, why does CocoaPods not install the latest version of pods?

前端 未结 3 1984
-上瘾入骨i
-上瘾入骨i 2021-02-08 12:23

Note - actually apparently it does. Use the syntax Marcelo explains. Hope it helps someone!


With CocoaPods, you basically do this,

pod \'GTScrollNa         


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-08 12:47

    Basically, it respects what you say in your Podfile.

    You have several options (from CocoaPods guides):

    • > 0.1 Any version higher than 0.1
    • >= 0.1 Version 0.1 and any higher version
    • < 0.1 Any version lower than 0.1
    • <= 0.1 Version 0.1 and any lower version
    • ~> 0.1.2 Version 0.1.2 and the versions up to 0.2, not including 0.2

    You can also provide no version at all, which will install always the latest available. Another option is provide a specific version, so that version will be always used.

提交回复
热议问题