cocoapods updates specified third-party libraries

 

Recently, an old project used a third-party library EBBannerView ( https://github.com/pikacode/EBBannerView ). This is a library about the notification bar. It is still very easy to use. If you need it, go to github. have a look! ! !

 

The version of the library used in my project is 1.0.7. If you want to update this library, many people may directly pod install and press Enter. This can be updated, but all third libraries will be updated to The latest, but I don't want to move other libraries, I just want to update the library I want to update, what should I do? ? ?

So easy

1.

pod update EBBannerView

 But it may report an error

 

Just replace it with the following method

2.

pod update EBBannerView  --verbose --no-repo-update

 The update is completed as shown below, the latest is 1.1.0, which has replaced the original 1.0.7

 3. Query which versions of third-party libraries are available

pod search EBBannerView

4. Delete a library

First, comment or delete the libraries that need to be deleted in the podfile, and then execute pod update EBBannerView --verbose --no-repo-update

As shown below:

 

Reminder:

Before the cocoapods update, I copied a copy of the project, just in case, if something goes wrong, it will be bad, so everyone should develop a good habit of making backups! ! !

Guess you like

Origin blog.csdn.net/zjpjay/article/details/107000235