How to check version of a CocoaPods framework

后端 未结 10 1905
醉话见心
醉话见心 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条回答
  • [CocoaPods]

    Cocoapods version

    CocoaPods program that is built with Ruby and it will be installable with the default Ruby available on macOS.

    pod --version //1.8.0.beta.2
    //or
    gem which cocoapods //Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.0.beta.2/lib/cocoapods.rb
    
    //install or update
    sudo gem install cocoapods
    

    A pod version

    Version of pods that is specified in Podfile

    Podfile.lock

    It is located in the same folder as Podfile. Here you can find a version of a pod which is used

    Search for pods

    If you are interested in all available version of specific pod you can use

    pod search <pod_name>
    //or
    pod trunk info <pod_name>
    

    Set a pod version in Podfile

    //specific version
    pod '<framework_name>', "<semantic_versioning>"
    // for example
    pod 'MyFramework', "1.0"
    
    0 讨论(0)
  • 2020-12-07 10:00

    I wrote a small commandline tool that parses the Podfile.lock and shows which version of each Pod is currently installed. It will also check for the latest version online and give you a summary of dependencies which are out-of-date.

    You can find it on Github: https://github.com/citruz/podchecker

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

    pod --version used this to check the version of the last installed pod

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

    When you run pod outdated, CocoaPods will list all pods that have newer versions that the ones listed in the Podfile.lock (the versions currently installed for each pod) and that could be updated (as long as it matches the restrictions like pod 'MyPod', '~>x.y' set in your Podfile)

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

    Podfile.lock file right under Podfile within your project.

    The main thing is , Force it to open through your favourite TextEditor, like Sublime or TextEdit [Open With -> Select Sublime] as it doesn't give an option straight away to open.

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

    To check version of cocoapods from terminal:

    For Sudoless:

    gem which cocoapods
    

    For Sudo:

    sudo gem which cocoapods
    

    Also note: If you want to edit podfile or podfile.lock don't edit it in editors. Open only with XCode.

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