iSwift
iSwift

Reputation: 314

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

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

Upvotes: 1

Views: 730

Answers (1)

kkodev
kkodev

Reputation: 2607

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.

Upvotes: 2

Related Questions