Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cobysy/36f7a6471b54161e1473 to your computer and use it in GitHub Desktop.
Save cobysy/36f7a6471b54161e1473 to your computer and use it in GitHub Desktop.
How to patch a library imported with Cocoapods
How to patch a library imported with Cocoapods
Forking the library, applying your patch, and pointing to your fork in the Podfile would be your best option.
If the library contains the podspec:
```
pod '<library>', :git => 'https://github.com/yourname/<library>.git'
```
If the library does not contain the podspec, you have to copy the podspec to a local path and adjust it:
```
pod '<library>', :podspec => 'local/path/to/<library>.podspec'
```
http://stackoverflow.com/questions/16821838/how-to-patch-a-library-imported-with-cocoapods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment