Reputation: 121
I have a basic swift script that writes to a file. I need to run that script every time my cocoapods library is compiled.
Is there a way to do this?
Upvotes: 0
Views: 904
Reputation: 121
In the podspec file you can do something like this:
s.script_phase = { :name => 'Writing to files', :script => '(./myscript)', :execution_position => :before_compile }
Upvotes: 2