My tips for faster builds:
- Precompile your dependencies.
- Use fewer dependencies. (your project doesn't need 6 networking libraries)
- Split your app into pre-built modules.
- Make use of public/private/final.
- Delete unused code. https://twitter.com/BeauNouvelle/status/1340145863356641281
- Precompile your dependencies.
- Use fewer dependencies. (your project doesn't need 6 networking libraries)
- Split your app into pre-built modules.
- Make use of public/private/final.
- Delete unused code. https://twitter.com/BeauNouvelle/status/1340145863356641281
- Disable DSYMs (until you need them)
- Enable WMO.
- Reduce the number of scripts in your build phases.
- Help the compiler along by annotating your types.
- Delete unused assets. (catalogs get compiled too)
- Enable WMO.
- Reduce the number of scripts in your build phases.
- Help the compiler along by annotating your types.
- Delete unused assets. (catalogs get compiled too)
The biggest thing is to just not use dependencies unless you HAVE to.
Exceptions include things like FacebookSDK, FirebaseSDK.
Do your own networking and caching.
Use Codable, not some JSON parsing library.
Do you really need that autolayout wrapper?
Exceptions include things like FacebookSDK, FirebaseSDK.
Do your own networking and caching.
Use Codable, not some JSON parsing library.
Do you really need that autolayout wrapper?
Delete Realm, longest build times of any dependency I've ever used.
Do you really need a database to manage a user's shopping cart? If yes, use Core Data.
Do you really need a database to manage a user's shopping cart? If yes, use Core Data.