"Update pod" does not update to the latest version

Here is my podfile that I use in the project:

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0' use_frameworks! pod 'AFNetworking', '~> 2.0' pod 'GoogleMaps' pod 'MONActivityIndicatorView' pod 'NYXImagesKit' pod 'MagicalRecord' pod 'FBSDKCoreKit' pod 'FBSDKShareKit' pod 'FBSDKLoginKit' pod 'Countly' 

The problem is that cocoapods 0.39 updates AFNetworking to version 2.5.4, which is incorrect. The latest version is 2.6.3. Updating Facebook SDK to 4.4 (the most recent - 4.8), etc.

I tried to delete the Pods and .lock folder but it doesn’t help

Also tried to clear the cache from the coco port, but did not help:

 MACMINI:myproject myusername$ pod cache clean --all MACMINI:myproject myusername$ pod update Update all pods Updating local specs repositories Analyzing dependencies Downloading dependencies Installing AFNetworking (2.5.4) Installing Bolts (1.2.0) Installing Countly (15.06.01) Installing FBSDKCoreKit (4.4.0) Installing FBSDKLoginKit (4.4.0) Installing FBSDKShareKit (4.4.0) Installing GoogleMaps (1.10.1) Installing MONActivityIndicatorView (0.0.3) Installing MagicalRecord (2.3.0) Installing NYXImagesKit (2.3) Generating Pods project Integrating client project [!] Please close any current Xcode sessions and use `myproject.xcworkspace` for this project from now on. Sending stats Sending stats Pod installation complete! There are 9 dependencies from the Podfile and 10 total pods installed. 
+8
ios cocoapods afnetworking-2
source share
6 answers

Removing and reinstalling cocoapods solved the problem:

 MACMINI:myproject myusername$ sudo rm -fr ~/.cocoapods/repos/master Password: MACMINI:myproject myusername$ pod setup Setting up CocoaPods master repo Setup completed MACMINI:myproject myusername$ cd ~/myproject/ MACMINI:myproject myusername$ pod update Update all pods Updating local specs repositories Analyzing dependencies Downloading dependencies Installing AFNetworking 2.6.3 (was 2.5.4) Installing Bolts 1.5.0 (was 1.2.0) Using Countly (15.06.01) Installing FBSDKCoreKit 4.8.0 (was 4.4.0) Installing FBSDKLoginKit 4.8.0 (was 4.4.0) Installing FBSDKShareKit 4.8.0 (was 4.4.0) Installing GoogleMaps 1.10.5 (was 1.10.1) Using MONActivityIndicatorView (0.0.3) Using MagicalRecord (2.3.0) Using NYXImagesKit (2.3) Generating Pods project Integrating client project Sending stats Sending stats Pod installation complete! There are 9 dependencies from the Podfile and 10 total pods installed. 
-one
source share

In my case, Neon would not update me. Turns out this is due to the purpose of deployment.

Changed platform :ios, '8.0' to platform :ios, '10.0'

And the update worked fine.

+4
source share

One of the reasons CocoaPods will not get the latest version of the module may be another dependency that requires an earlier version.

For example, suppose the latest version of PodA is 2.6, and you have it in your subpixel:

 pod 'PodA', '~> 2.0' pod 'PodB' 

It is not known that PodB has the following dependency: "PodA": "~> 2.5.4"

When CocoaPods tries to satisfy dependencies, it will reject version 2.6 of PodA because it will not be able to satisfy the more severe dependency restriction on PodB.

One way to fix this problem is to ask CocoaPods to print debugging information for the internal dependency by setting the following environment variable before running "pod update"

 export MOLINILLO_DEBUG=1 
+2
source share

I tried a new block and got the latest version

 Update all pods Updating local specs repositories Analyzing dependencies Downloading dependencies Installing AFNetworking (2.6.3) Generating Pods project Integrating client project [!] Please close any current Xcode sessions and use `AfnetworkingPodFic.xcworkspace` for this project from now on. Sending stats Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. 

Try to clear Cocoapods cache

you can find as below

https://gist.github.com/mbinna/4202236

Hope this helps :)

0
source share

$ pod update

in the terminal enter this command, call the update of the entire pod to the new version

0
source share

Clear the cache modules in the underlying paths and install pod again.

~ / Library / cache / CocoaPods /

~ / .cocoapods / repository / IBM-cocoapods functions

0
source share

All Articles