Update cocoapods to desired version

旧街凉风 提交于 2019-12-11 18:35:56

问题


We use cocoapods IQKeyboardManagerSwift in our project but IQKeyboardManagerSwift has updated Swift 3.0 to version 4.0.6. In the pod file, I wrote:

pod 'IQKeyboardManagerSwift' , '~> 4.0.5' 

Then, after installation , I found that it is still version 4.0.6


回答1:


The line below asks for version 4.0.5 or greater

'IQKeyboardManagerSwift', '~> 4.0.5'

and this line asks for version 4.0.5 exactly

'IQKeyboardManagerSwift', '4.0.5'



回答2:


This works fine for me, just updated and tested yesterday.

pod 'IQKeyboardManagerSwift'


来源:https://stackoverflow.com/questions/39658862/update-cocoapods-to-desired-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!