# Uber Rider App: The 2016 Rewrite in Swift | gen2.dev

> Uber rebuilt its rider app from scratch in 2016 on a new architecture, on iOS and Android at once. It shipped, and then the iOS binary hit a size limit.

Source: https://gen2.dev/cases/uber-rider-app/

---

Case file 19

# Uber rider app: a rewrite that shipped, then hit a size limit

In 2016 Uber rewrote its rider app from nothing, on both platforms at once, on a new architecture and in a new language on iOS. It shipped on November 2, 2016. The problem that nearly undid it showed up afterward, and it had nothing to do with features.

![Slide: the 2012 Uber app, rewritten from scratch and released November 2, 2016, then the 100 MB download limit as code grew 1.3 MB a week.](https://gen2.dev/img/case-uber-rider-app.png)

Most rewrite stories are about schedule. This one met its date. It belongs here because of what happened next, and because the engineers involved have told the story in unusual detail.

## Gen 1

Uber's engineering post about the project describes the old rider app plainly: it "was created almost four years ago by a handful of engineers." The launch announcement dates the last redesign to 2012.

The app was built on the model-view-controller pattern, which suited a small team. Then the product and the team grew. Features such as uberPOOL and scheduled rides were added. The team working on the app grew to a few hundred people, and the engineers wrote that they "saw firsthand how MVC couldn't grow with us."

They gave one example. A single class, the RequestViewController, "started off as 300 lines of code" and had grown to more than 3,000, because it handled business logic, data, networking and routing together. Experiments were added as if-else statements. Small changes risked breaking other parts of the app.

McLaren Stanley, an engineer who worked on the rewrite, later summed up the mood: "The general sentiment was that the architecture was slowing us down, starting over would be faster."

## The decision

Uber chose a full rewrite. The engineering post says so with some pride: "we went back to where we started in 2009: with nothing." Travis Kalanick, then the chief executive, described the result to reporters as "a radical redesign and rebuild of the app from scratch."

The engineers set two goals: increasing the availability of the core rider experience, and "allowing for radical experimentation within a set of product rails." The availability target was 99.99%, which they translated as "one cumulative hour of downtime a year."

Three large changes were made at the same time.

-   **A new architecture.** The team invented a pattern in which the app is a tree of small units, each made of a Router, an Interactor and a Builder. The 2016 post calls the units Riblets. Uber later published the framework as RIBs, a name that is "short for Router, Interactor and Builder."
-   **Both platforms.** The architecture was shared so that "both iOS and Android engineers can work on a unified ground." In Stanley's words, "We did both platforms at once."
-   **A new language on iOS.** Stanley wrote that "the rewrite presented an opportunity to adopt Swift," which was then at version 2.x.

The team did test the architecture first. The engineers say they "spent a couple months building prototypes."

## What happened

The project was known inside Uber as Helix. Gergely Orosz, who joined Uber in July 2016, a few weeks after the project was kicked off, counted "more than 100 iOS and 100 Android engineers working on the project" and a deadline less than three months away.

The language began to strain almost at once. Stanley wrote that "once Swift started to scale past ten engineers the wheels started coming off." Orosz recorded that compiling the app from scratch took 25 to 30 minutes on iOS.

Then the app would not start quickly. The code was split into many dynamic libraries. Stanley's account: Apple's recommended maximum for a single binary was 6, and "We had 92 and counting." The result was that "It took 8-12 seconds after tapping the app icon before main was even called." An engineer found a way to link the libraries into the main executable, which cut that time to almost nothing.

The new app was announced on November 2, 2016, "rolling out globally on iOS and Android over the next several weeks." On iOS the rollout was less gradual than planned. By Orosz's account, more than 1 million people in over 60 countries used the new iOS app in the first 24 hours, against a plan of 10% of that traffic at most. He writes that the Objective-C repository was deleted a week later.

After that, in Stanley's words, "the binary size problem hit."

Compiled Swift code was much larger than the Objective-C it replaced, and it was growing at 1.3 MB a week. Apple did not let people download large apps over a cellular connection, and the limit at the time was 100 MB. The first escape was to drop support for iOS 8, which Stanley says roughly halved the size and cost the company eight figures.

The code kept growing. A data scientist ran a test that deliberately pushed one build over the limit to measure the effect. Stanley reported the result: "The negative business impact was a few orders of magnitude larger than the entire cost of the year long Swift re-write."

A team was put on size reduction. One engineer wrote a search over the order of compiler optimization passes that removed 11 MB of machine code. The work bought time until Apple raised the limit to 150 MB, and later to 200 MB. Stanley is clear about how close it was: without the higher limit, he wrote, Uber would have been forced to rewrite the app back in Objective-C.

Uber's engineers were still working on the problem years later. A February 2021 post describes compiler techniques that "reduced the code size by 23%" in a rider app of a couple of million lines, the vast majority in Swift.

## What made it work

-   **The architecture was prototyped and it held.** RIBs solved the problem the rewrite was started for. Uber open-sourced it and describes it as the framework behind many of its mobile apps.
-   **Core and optional code were separated.** The 2016 post explains that optional features sit behind feature flags "that can be turned off if parts of it are buggy," so a broken experiment does not stop a rider requesting a trip.
-   **One design for two platforms.** Sharing the architecture, class names and plugin points let two teams of a hundred solve each problem once.
-   **The company treated size as an emergency.** It measured the business cost with a real test and then staffed the fix accordingly.

## What went wrong

-   **Three bets were placed at once.** A new architecture, a new language and a complete rewrite all landed on the same date. The architecture was prototyped. The language was not proven at that scale by anyone.
-   **The limit that mattered was outside the code.** Nothing in the feature list mentioned a download ceiling set by another company. It became the one constraint that could have reversed the project.
-   **There was no way back.** The old app was replaced in the store and its repository was deleted a week later. This is [the big-bang cutover](https://gen2.dev/guide/big-bang-cutover/) in its purest form.
-   **People paid for the date.** Stanley wrote that "A bunch of folks burned out along the way." Orosz wrote that "Helix took a huge toll on most people."

## The verdict

It worked. The app shipped on its date, on both platforms, and Uber still publishes the architecture as the framework behind many of its mobile apps. Stanley notes that most of those involved still say the rewrite was worth it.

It was also closer to failure than a shipped product suggests, and the escape depended partly on a decision made by Apple. Uber seems to have drawn the same conclusion. Orosz writes that the next rewrite, of the driver app, "was far more gradual."

## What to take from it

-   **Change one foundation at a time.** A rewrite is already the largest risk a product team takes. Adding an unproven language to it multiplies the unknowns.
-   **Prototype the tools at full scale, not only the design.** By Stanley's account the trouble with Swift began once more than ten engineers were using it, and the project had over a hundred on iOS.
-   **List the limits you do not control.** Store rules, platform ceilings and vendor quotas are part of the system. Find out how near you are before the rewrite, not after.
-   **Keep a way back.** Stanley's own lesson was "Build in failure points." A project with no exit turns every surprise into an emergency.
-   **Do not let a technical choice become a faction.** His other lesson: "Don't let it descend into a political war between opinionated factions."

## Sources

1.  [Vivian Tran and Yixin Zhu - Engineering the Architecture Behind Uber's New Rider App (Uber Engineering, December 20, 2016)](https://www.uber.com/blog/new-rider-app-architecture/) - Uber's own account: the old architecture, the two goals, the 99.99% target and the new architecture pattern
2.  [Yuhki Yamashita - Where to? (Uber Newsroom, November 2, 2016)](https://www.uber.com/newsroom/newriderapp) - the launch announcement: rebuilt from the ground up, the 2012 redesign, the global rollout on iOS and Android
3.  [Kia Kokalitcheva - Uber Redesigns Its Ride-Hailing App (Fortune, November 2, 2016)](https://fortune.com/2016/11/02/uber-app-redesign/) - contemporaneous report with Travis Kalanick's description of the rebuild
4.  [uber/RIBs - Uber's cross-platform mobile architecture framework (GitHub)](https://github.com/uber/RIBs) - the name RIBs, what it stands for, and the shared architecture across iOS and Android
5.  [McLaren Stanley - thread on Uber's Swift rewrite (December 10, 2020, Thread Reader copy)](https://threadreaderapp.com/thread/1336890442768547845) - first-hand account by an engineer assigned to dynamic linking and binary size: startup time, the download limit, the test, the lessons
6.  [Gergely Orosz - Uber's Crazy YOLO App Rewrite, From the Front Seat (The Pragmatic Engineer, May 17, 2021)](https://blog.pragmaticengineer.com/uber-app-rewrite-yolo/) - first-hand account by an engineer on the project: team size, deadlines, build times, the launch and its human cost
7.  [Raj Barik, Milind Chabbi and Jin Lin - How Uber Deals with Large iOS App Size (Uber Engineering, February 26, 2021)](https://www.uber.com/blog/how-uber-deals-with-large-ios-app-size/) - Uber's later compiler work on the size of the Swift rider app

Last updated November 28, 2026.

## Scorecard

Worked

Gen 1

The Uber rider app designed in 2012, built on a model-view-controller architecture by a handful of engineers

Gen 2

The rider app released on November 2, 2016, built on the RIBs architecture on iOS and Android, with the iOS app written in Swift

Approach

Rewrite the whole app from scratch on both platforms at once, to a fixed date, and replace the old app in the store

How long

Months of building in 2016, released November 2, 2016; the iOS size problem ran on after launch

Verdict

The rewrite shipped and its architecture lasted, but an untested language choice at that scale came close to forcing a second rewrite.

## More case files

-   [Netscape 6](https://gen2.dev/cases/netscape-6/)
-   [Python 2 to 3](https://gen2.dev/cases/python-2-to-3/)
-   [Firefox Quantum](https://gen2.dev/cases/firefox-quantum/)
-   [Perl 6 and Raku](https://gen2.dev/cases/perl-6-raku/)
-   [AngularJS to Angular](https://gen2.dev/cases/angularjs-to-angular/)
-   [Windows Longhorn](https://gen2.dev/cases/windows-longhorn/)
-   [Digg v4](https://gen2.dev/cases/digg-v4/)
-   [Twitter to the JVM](https://gen2.dev/cases/twitter-jvm/)
-   [Basecamp](https://gen2.dev/cases/basecamp/)
-   [IPv4 to IPv6](https://gen2.dev/cases/ipv6/)
-   [VB6 to VB.NET](https://gen2.dev/cases/vb6-to-vb-net/)
-   [HTTP/2 and HTTP/3](https://gen2.dev/cases/http-2-and-3/)
-   [K-12 browser rewrite](https://gen2.dev/cases/k12-browser-rewrite/)
-   [Mac OS X](https://gen2.dev/cases/mac-os-x/)
-   [Microsoft Edge](https://gen2.dev/cases/edge-chromium/)
-   [Winamp3](https://gen2.dev/cases/winamp3/)
-   [Slack desktop](https://gen2.dev/cases/slack-desktop/)
-   [Evernote 10](https://gen2.dev/cases/evernote/)
-   [HealthCare.gov](https://gen2.dev/cases/healthcare-gov/)
-   [Thunderbird Supernova](https://gen2.dev/cases/thunderbird-supernova/)
-   [Skype](https://gen2.dev/cases/skype-cloud/)
-   [Sonos app (2024)](https://gen2.dev/cases/sonos-app-2024/)
-   [FBI Virtual Case File](https://gen2.dev/cases/fbi-virtual-case-file/)
-   [LinkedIn Inversion](https://gen2.dev/cases/linkedin-project-inversion/)
-   [Netflix to AWS](https://gen2.dev/cases/netflix-cloud-migration/)
-   [TSB migration](https://gen2.dev/cases/tsb-migration/)
-   [Phoenix pay system](https://gen2.dev/cases/phoenix-pay/)
-   [Universal Credit](https://gen2.dev/cases/universal-credit/)
-   [Queensland Health payroll](https://gen2.dev/cases/queensland-health-payroll/)
-   [Facebook for iOS](https://gen2.dev/cases/facebook-native-ios/)
-   [New Microsoft Teams](https://gen2.dev/cases/microsoft-teams-2/)
-   [Dropbox to Python 3](https://gen2.dev/cases/dropbox-python-3/)
-   [Instagram to Python 3](https://gen2.dev/cases/instagram-python-3/)
-   [Discord Go to Rust](https://gen2.dev/cases/discord-go-to-rust/)
-   [Reddit Redesign](https://gen2.dev/cases/reddit-redesign/)
-   [GetPranks](https://gen2.dev/cases/getpranks/)
-   [37signals cloud exit](https://gen2.dev/cases/37signals-cloud-exit/)
-   [IRS Individual Master File](https://gen2.dev/cases/irs-individual-master-file/)
-   [All case files](https://gen2.dev/cases/)
