---
title: "XcodeGen and the quest to modularize the Wealthfront iOS app"
description: "Wealthfront replaced its checked-in .xcodeproj with XcodeGen-generated projects defined in YAML, which eliminated project-file merge conflicts across seven squads and made build configuration reviewable in pull requests."
url: "https://swe.quest/articles/xcodegen-and-the-quest-to-modularize-the-wealthfront-ios-app-166e946faeb6fbbc"
canonical: "https://eng.wealthfront.com/2026/03/02/xcodegen-and-the-quest-to-modularize-the-wealthfront-ios-app/"
source: "Wealthfront Engineering"
published: "2026-03-02"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["mobile","swift","build-systems","refactoring","developer-productivity"]
---

# XcodeGen and the quest to modularize the Wealthfront iOS app

A post on [Wealthfront Engineering](https://swe.quest/sources/wealthfront.md), published 2026-03-02, 11 min read, Case study. Original: [https://eng.wealthfront.com/2026/03/02/xcodegen-and-the-quest-to-modularize-the-wealthfront-ios-app/](https://eng.wealthfront.com/2026/03/02/xcodegen-and-the-quest-to-modularize-the-wealthfront-ios-app/)

## Summary

Wealthfront replaced its checked-in .xcodeproj with XcodeGen-generated projects defined in YAML, which eliminated project-file merge conflicts across seven squads and made build configuration reviewable in pull requests. The same setup is the foundation for breaking up a roughly 2,000-file Swift monolith into local Swift Package Manager modules with compiler-enforced one-way dependencies, declared in an included packages.yml. Build measurements show 2–3 minute fresh builds, with 'Emitting Module' at about 14.5s dominating incremental builds, which motivates the modularization. Eight infrastructure modules have been extracted so far, and the CI pipeline runs xcodegen → pod install → swift package resolve → xcodebuild, with a custom DI container and a routing layer planned next.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Swift](https://swe.quest/tags/swift.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- Xcode projects and targets
- Swift Package Manager ([easy posts on Swift](https://swe.quest/tags/swift.md?difficulty=easy))

## Keywords

XcodeGen, Xcode, Swift Package Manager, CocoaPods, SwiftGen, Jenkins

## Related posts

- [How we rebuilt the Shopify app in 12 weeks](https://swe.quest/articles/how-we-rebuilt-the-shopify-app-in-12-weeks-08ae147088c9e21e.md): Shopify Engineering · 2026-11-10 · Medium · 15 min read · AI for coding, Mobile, Refactoring & migrations, Developer productivity, Code review
  Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code.
- [How we build SwiftUI features in the Medium application](https://swe.quest/articles/how-we-build-swiftui-features-in-the-medium-application-6bea0243c28426a7.md): Medium Engineering · 2021-06-08 · Medium · 9 min read · Swift, Mobile, Refactoring & migrations, Build systems, GraphQL
  Medium's iOS team builds new iOS 13+ features in SwiftUI and Combine by splitting a monolithic, partly Objective-C codebase into Swift packages: ApolloModel for generated GraphQL models, SharedUI components, per-feature UI packages, and planned LiveService/FakeService packages.
- [Scaling Slack’s Mobile Codebases: Modularization](https://swe.quest/articles/scaling-slack-s-mobile-codebases-modularization-70662aadd976d6a5.md): Slack Engineering · 2022-03-28 · Medium · 11 min read · Mobile, Build systems, Refactoring & migrations, Developer productivity, Swift
  Slack split its monolithic iOS and Android app targets into owned Feature, Service and Library modules with strict linking rules, such as interface/implementation pairs on iOS, to cut build times, untangle dependencies and clarify code ownership.
- [Scaling Slack’s Mobile Codebases: Modernization](https://swe.quest/articles/scaling-slack-s-mobile-codebases-modernization-950b9c539d5b5770.md): Slack Engineering · 2022-05-04 · Medium · 12 min read · Mobile, Refactoring & migrations, Swift, Java & JVM, Build systems
  Slack's year-and-a-half Duplo initiative concluded by modernizing its iOS and Android codebases: iOS moved to a custom VIPER-style feature architecture, stricter SwiftLint rules banning singletons and NotificationCenter, Combine (via CombineX until iOS 12 was dropped), and broader SlackKit adoption, while Android replaced Gson with Moshi, Android Priority Job Queue with WorkManager, and handwritten API calls with an internal Retrofit-based library, and introduced coroutines and Compose incrementally. iOS ended 68% modernized and 81% modularized with CI stability rising from 77% to 90% and average time-to-merge down 64%, Android reached 92% modularization, and local builds later dropped nearly 50% with Bazel and M1 Macs.
- [How We Built The Deals Tab in Swift UI](https://swe.quest/articles/how-we-built-the-deals-tab-in-swift-ui-81d29cc7e9699bbd.md): Etsy Code as Craft · 2024-03-05 · Medium · 13 min read · Swift, Mobile, Refactoring & migrations, Build systems, Developer productivity
  Etsy rebuilt its mobile Updates tab as a new Deals tab in SwiftUI inside a modular Tuist module, which made preview builds nearly instant and let the team build modules from mock preview data about two weeks before the APIs were ready.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
