How to install specific pod without touching other dependencies

后端 未结 9 593
小鲜肉
小鲜肉 2021-02-01 02:56

I want to install specific dependency using cocoapods. if I execute pod install, other dependencies are getting updated before installing my newly adde

相关标签:
9条回答
  • 2021-02-01 03:38

    If you have your first "Podfile.lock" in your project folder, you just have to use

    pod install
    

    Your "Podfile.lock" has registered the version of your old pod so you don't need to do something else

    0 讨论(0)
  • 2021-02-01 03:40

    To Skip running pod repo update before install.Use

    pod install --no-repo-update
    
    0 讨论(0)
  • 2021-02-01 03:41

    1) If you want to update single pod

    pod update 'yourpodname'

    2) if you want to install one pod without affecting another pod

    pod install --no-repo-update

    3)if you want to install/update specific version of pod

    pod 'Stripe', '3.0'

    4) if you want to install/update latest version of pod than

    pod 'KCFloatingActionButton'

    0 讨论(0)
  • 2021-02-01 03:43

    Here is another way of doing it. If you want to install newly added pod and don't want to update other dependancies you need to remove "~>" from all your pods you don't want to update. For example in case of AFNetworking

    pod 'AFNetworking', '2.2.1'   instead of pod 'AFNetworking',~> '2.2.1' 
    
    0 讨论(0)
  • 2021-02-01 03:46

    Do not get confused just open up the existing file and added the numbers of pod file below the existing pods.

    Further, go to terminal and open up your project and run command:

    $ pod install

    (This command will only add on the new pod without disturbing your existing pods)

    0 讨论(0)
  • 2021-02-01 03:50

    Here you can skip integration of the Pods libraries in the Xcode project(s) by using following command.

    pod install --no-integrate
    

    Pod install

    Hope this help you.

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