Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Xcode pre-action: generate Swift FAT file to reduce compilation time, since it's faster to recompile the whole source code in a single file
> $PROJECT_DIR/merge.swift; find $PROJECT_DIR/ -iname *.swift -not -name merge.swift -exec cat {} >> $PROJECT_DIR/merge.swift \;
Copy link

lucholaf commented Dec 11, 2014

You need to generate a new target in Xcode with all .m, .h and the merge.swift file (not the rest of .swift files). Then add the above script as a pre-action.

Copy link

jeffreyrosenbluth commented Jan 23, 2015

worth a shot

Copy link

juliantejera commented Aug 28, 2015

Did it reduce your compile time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment