wm.p1us
wm.p1us

Reputation: 2069

Carthage run script Xcode output files

I'am doing my first demo with Carthage and looked through lots of tutorials and nowhere I saw usage of Output files setting in Xcode in Run script section. I understand why do we need Input files, but can't get why do we need output files?

Can someone explain this moment?

Upvotes: 1

Views: 212

Answers (1)

Mehul Parmar
Mehul Parmar

Reputation: 3699

You use it to write some custom output to a file, instead of, say, printing it to the console. Once you add your file in the output section, you may write to it like this:

echo "Some custom output" > "$(SCRIPT_OUTPUT_FILE_0)"

Your CI systems may then read this file and perform some actions, log data, etc.

Upvotes: 1

Related Questions