Swift Supports Bitcode, a Bet on CPUs That Did Not Exist Yet
When Apple introduced watchOS 2 in 2015, it also introduced a build setting that confused a generation of iOS developers: Enable Bitcode. The idea was ambitious. Instead of uploading only compiled machine code to the App Store, you uploaded an intermediate representation produced by LLVM, the compiler infrastructure underneath Swift and Objective C. Apple kept the final compilation step, so it could take an app you submitted in 2015 and rebuild it for an instruction set that did not exist when you shipped.
In principle this is a genuinely powerful idea. A bitcode file is not tied to ARM or x86. It is a serialized form of the program after parsing and optimization, close enough to machine code that the backend can finish the job, abstract enough that the target architecture is still a parameter. Apple's pitch was that when the company moved the platform to a new chip, your binary would not need a resubmission, a new review, or a developer awake at 2 a.m. It would simply be recompiled server side and delivered.
Adoption happened in stages and by force rather than enthusiasm. Apple required bitcode for watchOS apps first, then for tvOS, where it was on by default for new projects. On iOS it stayed technically optional but practically mandatory at times, because a static library or binary framework you depended on had to be built with bitcode too. That requirement rippled through the ecosystem. CocoaPods had to grow special handling for bitcode enabled pods, prebuilt SDKs had to recompile and reship, and teams spent entire afternoons chasing a linker error that said a dependency was built without the flag.
The debugging experience was the part nobody defended. When a crash report arrived, symbolication depended on dSYM files that matched the binary Apple had actually built, not the binary you had built locally. Mismatched UUIDs meant stack traces full of raw addresses. Build times grew, app sizes grew in some configurations, and the promise of future proofing was invisible in every ordinary working day. Features that cost you something today for a benefit that might arrive in five years are always a hard sell to a team shipping weekly.
The bet never really paid out in public. Apple did change architectures during the bitcode era, moving iOS to 64 bit only and later shipping Apple Silicon Macs, but the transition that mattered to developers was handled by recompiling source with a new Xcode, not by recompiling old app binaries from bitcode. Meanwhile Swift itself solved a different piece of the portability puzzle: ABI stability in Swift 5 and module stability in Swift 5.1 meant compiled Swift libraries could be shared across compiler versions, reducing the pressure that bitcode was meant to relieve.
The ending was quiet. Xcode 14 deprecated bitcode in 2022, App Store Connect stopped accepting bitcode submissions, and later Xcode releases removed the setting entirely. Projects that had wired the flag into their build scripts had to strip it out, and third party SDKs that still shipped bitcode builds had to be updated. A technology that once generated thousands of forum threads simply disappeared from project settings, which is how most platform shifts actually end.
For anyone building compilers or platforms, the failure mode is instructive. Bitcode asked developers to give up control of the final compile, and in exchange it offered a benefit that could not be demonstrated. The mechanism was sound, the tooling was real, but the value proposition was a promise about the future rather than a fix for today. Intermediate representations remain essential inside every modern toolchain, and Swift still generates them on the way to your binary. What died was not the technology, only the idea that shipping one to a vendor was something a working developer should have to think about.