Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods for a third party library which uses a Makefile

Tags:

ios

cocoapods

I'm working on a project which will use an open source cross-plateform library. This library is a huge one, built using the Makefile system (or even Rakefile 😉). I would love to build a podspec to be able to integrate this lib using CocoaPods. But I cannot find a way to do this.

I thought about adding a run script to the pod install phase, or (maybe better) add a run script phase to the Xcode target which would launch the proper make […] command to have this open source lib build for the right platform.

Any idea or pointers on that? Thanks!

like image 499
MonsieurDart Avatar asked Dec 09 '25 03:12

MonsieurDart


1 Answers

See the prepare_command docs: http://guides.cocoapods.org/syntax/podspec.html#prepare_command.

like image 182
alloy Avatar answered Dec 10 '25 16:12

alloy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!