How to rename cocoapod

I have a published Cocoapod, let's say it's called abc-sdk, I want to fix its name (capitalization) before abc-sdk. Is it possible? I tried changing s.namein podspec (and in the podspec file name entries), but when I start pod trunk push, I get: [!] The following validation failed: - Name is already taken. What is the correct way to do this?

+4
source share
3 answers

Hrm, so yes, it can be changed (via PR for the Specs repository), but it is not encouraged, as it will break all the subfiles.

Another way to handle this is to create a new Podspec and use the deprecated_in_favor_ofolder one to point to the new one. For instance. AbcSDKinstead of Abc-SDK.

+7

, . CocoaPods ( , 1.0.0.b.8):

pod trunk deprecate OLD_SPEC --in-favor-of=NEW_SPEC

https://github.com/CocoaPods/cocoapods-trunk/issues/31

+5

Have you tried using your repo instead? (way to pod trunk).

Things to remember:

  • After that, I am sure that there is a certain time window during which the caches are still not cleared.
  • Changes may be broken for users by running pod install --no-repo-update
  • Changes can be interrupted even for users who regularly update spec repo because of a name mismatch - as you already know, cocoapods are case sensitive.
0
source

All Articles