How to check version of a CocoaPods framework

后端 未结 10 1906
醉话见心
醉话见心 2020-12-07 09:51

I have updated Flurry via CocoaPods, but how can I check if Flurry was updated?

I mean the terminal shown me that everything is ok:

Installing Flurry         


        
相关标签:
10条回答
  • 2020-12-07 10:11

    pod --version

    to get the version of installed pod

    0 讨论(0)
  • 2020-12-07 10:12

    The Podfile.lock keeps track of the resolved versions of each Pod installed. If you want to double check that FlurrySDK is using 4.2.3, check that file.

    Note: You should not edit this file. It is auto-generated when you run pod install or pod update

    0 讨论(0)
  • 2020-12-07 10:17

    The highest voted answer (MishieMoo) is correct but it doesn't explain how to open Podfile.lock. Everytime I tried I kept getting:

    You open it in terminal by going to the folder it's in and running:

    vim Podfile.lock
    

    I got the answer from here: how to open Podfile.lock

    You close it by pressing the colon and typing quit then enter

    :quit //then return key
    
    0 讨论(0)
  • 2020-12-07 10:18

    You can figure out version of Cocoapods by using below command :

    pod —-version
    

    o/p : 1.2.1

    Now if you want detailed version of Gems and Cocoapods then use below command :

    gem which cocoapods (without sudo)

    o/p : /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods.rb

    sudo gem which cocoapods (with sudo)

    o/p : /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods.rb

    Now if you want to get specific version of Pod present in Podfile then simply use command pod install in terminal. This will show list of pod being used in project along with version.

    0 讨论(0)
提交回复
热议问题