Since I upgraded Cocoapods to the latest version, BECAUSE I added CDN source, THERE are two POD sources. Every time I push, THERE will be a large number of conflict warnings. At first, I didn’t care much about them, but every time I read the error message, I was very upset. Decided to cancel the warning. The steps are as follows:

Look at the source

Use pod repo list to check the list of local sources, there are local private sources + two public sources (master(possibly cocoapods),trunk, you can keep the trunk, remove the master, use (pod repo remove master). Then there is only one common source (trunk) for the CDN locally.

Replace the source

View the podfile file and point to the public source source source ‘github.com/CocoaPods/S… Replace ‘source’ with ‘cdn.cocoapods.org/’ so that we don’t use the local non-trunk public source for pod install or POD update.

Push the source to replace

When we publish a local component to a private or public source, if there is a source pointing to it, we can replace it with CDN as above.

As a result, we have replaced the earlier caches that needed to be downloaded locally with CDN mode step by step, so that pod Setup doesn’t take a long time every time Cocoapods is installed, which greatly speeds up development.