“pod update” doesn't update to latest version

前端 未结 8 577
[愿得一人]
[愿得一人] 2021-01-07 23:28

Here is my podfile I use in the project:

source \'https://github.com/CocoaPods/Specs.git\'
platform :ios, \'9.0\'
use_frameworks!

pod \'AFNetworking\', \'~&         


        
相关标签:
8条回答
  • 2021-01-07 23:41

    I tried a new pod and it get me the latest

    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 clearing the cache of Cocoapods

    you can find how to from below

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

    Hope it helps :)

    0 讨论(0)
  • 2021-01-07 23:45

    Clean the pods cache in below paths and do pod install again.

    ~/Library/Caches/CocoaPods/

    ~/.cocoapods/repos/ibm-cocoapods-specs

    0 讨论(0)
  • 2021-01-07 23:46

    Installing latest cocoapods worked for me.

    sudo gem install cocoapods
    
    0 讨论(0)
  • 2021-01-07 23:46

    Please update your CocoaPods like below:

    myComputer:desiredFolder Test$ pod update
    
    0 讨论(0)
  • 2021-01-07 23:50

    Removing and reinstalling of 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.
    
    0 讨论(0)
  • 2021-01-07 23:52

    In my case, Neon wouldn't update for me. It turns out it was because of the deployment target.

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

    And update worked normally.

    0 讨论(0)
提交回复
热议问题