Wednesday, 23 January 2019

Improve Build Time

 Build Level Improvement

1. Parallelize Build
Edit Scheme -> Build -> Turn on Parallelize Build


2. Incremental Compilation
Select Project -> Build Settings -> Search for Compilation Mode -> Select Incremental for Debug


3. Run Script Phases
Select Target -> Build Phases
This will allows you to customise build process.E.g. dynamically set the version based on external parameters. Load settings bundle with options to change environment.



Source Level Improvement
https://developer.apple.com/videos/play/wwdc2018/408/
E.g 
Provide Type in Complex Closures
Keep bridging header minimal (objective-c Swift mixed project)


Other references:
https://medium.com/@ankitkumargupta/xcode-add-build-phase-shell-script-without-cluttering-your-project-file-2de8aa3fe0ce
https://www.mokacoding.com/blog/better-build-phase-scripts/

No comments:

Post a Comment