Skip to content

Instantly share code, notes, and snippets.

Embed
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 \;
@lucholaf

This comment has been minimized.

Copy link
Owner Author

@lucholaf 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.

@jeffreyrosenbluth

This comment has been minimized.

Copy link

@jeffreyrosenbluth jeffreyrosenbluth commented Jan 23, 2015

worth a shot

@juliantejera

This comment has been minimized.

Copy link

@juliantejera 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