aircraft
aircraft

Reputation: 26924

How to only update one lib of podfile in cocoapods?

In my podfile:

 platform:ios,'8.0'
 target "agriculturalApp" do

    pod 'IQKeyboardManager', '~>  3.3.7'
    pod 'SDWebImage', '~>3.8.1'   #3.8.0才支持ipv6
    pod 'AFNetworking', '~>3.1.0'

    pod 'UILabel+Copyable'

    use_frameworks!
    pod 'ReactiveCocoa','~>4.1.0'

    pod 'EBForeNotification', '~> 1.0.6'

    post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '2.3'  ## or '3.0'
            end
        end
    end 
   
end

I have so many pods lib in my podfile, but how can I only update the custom lib?

Such as, you know, if I update cocoapods, I will update all of the libs in podfile. I just want to update SDWebImage to ~> 4.0.0-beta2.

Upvotes: 2

Views: 558

Answers (1)

xoudini
xoudini

Reputation: 7031

Use pod update [PODNAME] as per the docs.

So, change the version (or remove if you want the newest version) for SDWebImage and run:

pod update SDWebImage

Upvotes: 3

Related Questions