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
- 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)
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?
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.
You can follow @BeauNouvelle.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.