How to install specific pod without touching other dependencies

后端 未结 9 753
小鲜肉
小鲜肉 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条回答
  •  Happy的楠姐
    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' 
    

提交回复
热议问题