podfile-lock

The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.2)

旧时模样 提交于 2019-12-08 16:29:34
问题 on $pod install it gives warning & fails The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.2) What is it trying to say ? macOs : 10.11.6 osx el capitan my pod version is : 1.5. 3 What does"current executable" (1.5. 2 ) means ? and how to update it ? 回答1: The error you are getting is due to your podfile.lock being built with an older version of Cocoapods. All you need to do is to delete your podfile.lock file and run pod

what is the usage of “~>” in cocoapods

拟墨画扇 提交于 2019-11-28 20:49:58
问题 I want to know what the "~>" is used for,cause I find they are the same below: pod 'AFNetworking','~> 2.0.3' pod 'AFNetworking','2.0.3' 回答1: Well, ~> (the optimistic operator) is used when you want to specify a version 'up to next major | minor | patch '. For example: ~> 0.1.2 will get you a version up to 0.2 (but not including 0.2 and higher) ~> 0.1 will get you a version up to 1.0 (but not including 1.0 and higher) ~> 0 will get you a version of 0 and higher (same as if it was omitted)