久美子
久美子

Reputation: 121

Is there a way to run a script file every time before my pod is compiled?

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

Answers (1)

久美子
久美子

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

Related Questions