Githawk: Improve compile times

Created on 11 Jul 2017  Â·  4Comments  Â·  Source: GitHawkApp/GitHawk

I took a stab at removing CocoaPods and didn't notice any build improvements. Instead of hacking at it, it'd be good to do some profiling of builds. Will do this and report back.

Any good tools for profiling Swift builds?

âť” question

All 4 comments

Dang, some gnarly ones:

(warning, big file)

https://github.com/rnystrom/Freetime/blob/master/culprits.txt

via:

$ xcodebuild -workspace Freetime.xcworkspace -scheme Freetime clean build OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" | grep .[0-9]ms | grep -v ^0.[0-9]ms | sort -nr > culprits.txt

Also worth just making sure the whole project optimisation settings are correct; that alone can save a lot of build times!

I’ve used this one before: https://github.com/RobertGummesson/BuildTimeAnalyzer-for-Xcode/

I don’t know if works with Xcode 9, haven’t used it since Swift 2.3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rnystrom picture rnystrom  Â·  3Comments

weyert picture weyert  Â·  3Comments

Iron-Ham picture Iron-Ham  Â·  3Comments

rnystrom picture rnystrom  Â·  3Comments

rizwankce picture rizwankce  Â·  3Comments