Stop Re-creating CocoaPods due to major version update on pod install

659 views Asked by At

how do i stop the re-installing of old pods on new pod install.

old pod was 1.0.0, updated pod is 1.1.1

pod install --no-repo-update ----> Re-creating CocoaPods due to major version update.

for example: pod file: pod 'Alamofire', '~> 3.3'

Installing Alamofire (3.5.1) --> prevent this from installing on pod install

1

There are 1 answers

3
kkodev On BEST ANSWER

If you want a specific version, don't use compatibility operator ~>, just provide the version:

pod 'Alamofire', '3.3.1'

This means that you only want this, and no other version. By specifying '~> 3.3', you are saying that you want any version that's compatible, which essentially is 3.x.y. You can read more on semantic versioning here: http://semver.org.