Cocoapod: how to push the spec to my private lint-free repo?

I have my own cocoapod, which is a wrapper for the C ++ library, so it cannot be used without the common library used for each architect. I would prefer to add *.a to a project that uses this cocoapod, so cocoapod obviously fails to link during the listing. How can I push podspec on my personal lint-passing repo?

+5
source share
2 answers

Since no answers have been made, I assume this is not possible or this is not a good practice. Thus, I created the general repo directory structures in the repo, copied the package specification file and committed / clicked it. After that, I was able to use it the same way it was pressed using pod repo push ...

Any improvement / good solution appreciated.

+4
source

When I need to do this, I follow these steps:

  • Open the CocoaPods script file with a text editor:

    ❯ atom / Library / Ruby / Gems / 2.0.0 / gems / cocoapods-trunk-1.2.0 / lib / pod / command / trunk / push.rb

  • Comment out the check line:

enter image description here

  1. Try publishing the module again.

Remember to undo the change. If project developers do not add a flag for this, they have their own reasons.

+2
source

Source: https://habr.com/ru/post/1233996/


All Articles