CocoaPods update lowers installed package

When I run pod update , MMDrawerController downgraded from the currently installed version (0.5.7) to an older version (0.4.0).

Here are the contents of my subfile:

 source 'https://github.com/CocoaPods/Specs.git' link_with 'OpenEye-Mobile', 'SecurityStar Tests' platform :ios, '7.0' pod 'AFNetworking', '~> 2.5.0' pod 'MBProgressHUD', '~> 0.9' pod 'MMDrawerController' pod 'MMDrawerController+Storyboard', '~> 0.0.1' pod 'UIAlertView+Blocks', '~> 0.8.1' target :"SecurityStar Tests" do pod 'OCMock', '~> 3.1.1' end 

I just updated the cocoapods gem from v. 0.34.4 to 0.35.0. The only change I made to the Subfile was updating AFNetworking from 2.3.1 to 2.5.0. If I try to explicitly specify MMDrawerController as v. 0.5.7, I get a dependency error:

 - `MMDrawerController (= 0.5.7)` required by `Podfile` - `MMDrawerController (~> 0.4.0)` required by `MMDrawerController+Storyboard (0.0.1)` 

What's going on here? Why is this problem all of a sudden? Has something changed in cocoapods 0.35? Is there a way I can get MMDrawerController+Storyboard be ok with MMDrawerController (= 0.5.7) ?

+5
source share
1 answer

SOLUTION 1 indicates the same range as in MMDrawerController + Storyboard

 pod 'MMDrawerController', '~> 0.4.0' 

SOLUTION 2 is to update the MMDrawerController + Storyboard podspec file to use the latest version.

EXPLANATION The problem is what it says: dependency error.

This line in the podfile accepts the last (for 04.02 - 0.5.7):

 pod 'MMDrawerController' 

While this one requires "MMDrawerController + Storyboard":

 pod 'MMDrawerController+Storyboard', '~> 0.0.1' 

which, in turn, indicates podspec as a dependency in it:

 s.dependency 'MMDrawerController', '~> 0.4.0' 

'~> 0.4.0' means that it can use versions 0.4.0 - 0.4.9 and there is no intersection of 0.5.7 with 0.4.0 - 0.4.9.

+4
source

Source: https://habr.com/ru/post/1212575/


All Articles