Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapod: how to push spec to my private repo without lint?

I'm having my own cocoapod which is wrapper to C++ library, so it can't be used without having per-architect shared library. I'd prefer to add *.a in the project that is using this cocoapod so cocoapod obviously fails at linking while linting. How can i push podspec to my private repo skipping lint?

like image 208
4ntoine Avatar asked Oct 19 '15 04:10

4ntoine


People also ask

What is POD repo push?

Pod Repo Push ActionAdd podspec to your private repo on tag event. The action will automatically update the podspec version based on the tag name using the version_bump_podspec action from Fastlane.


1 Answers

When I need to do that I perform the following steps:

  1. 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

  2. Comment the validating line:

enter image description here

  1. Try to publish the pod again.

Don't forget to undo the change. If the project maintainers do not add a flag for this, they have their reasons.

like image 174
Sandro Machado Avatar answered Oct 13 '22 05:10

Sandro Machado