Universal binary

Also known as: Universal 2

On this page 7

A Universal binary is a single macOS executable file that contains separate native code for several processor architectures, so the same app runs at full speed on different kinds of Mac. In Apple silicon & compatibility, the current form, Universal 2, combines code for Apple silicon (arm64) and for Intel processors (x86_64) in one application bundle.

When the app launches, macOS selects the matching slice automatically, and the user never chooses a version. This makes the Universal binary the main tool that lets developers support both generations of Mac during a transition without shipping two separate downloads.

How a Universal binary is built and loaded

Executables on macOS use the Mach-O format. A Universal binary wraps several complete Mach-O images, called slices or architecture variants, inside a container with a short header, often called a fat header. The header lists each architecture, its offset in the file and its size.

At launch, the kernel and the dynamic linker read the header, pick the slice that matches the CPU and map only that slice into memory. The other slices stay on disk unused, so a Universal binary costs disk space but not memory or speed.

The principle applies to every compiled component, not only the main executable. Frameworks, plug-ins, command-line tools and dynamic libraries inside the app must each contain the needed architectures, or the app fails to load them natively.

ArchitectureProcessor familyStatus
arm64Apple silicon M-seriesCurrent native target
arm64eApple silicon with pointer authenticationUsed by system components
x86_6464-bit IntelSupported for Intel-based Macs
i38632-bit IntelNot runnable since macOS Catalina
ppc and ppc64PowerPCNot runnable on current macOS
Architecture identifiers found in Mac binaries

Universal and Universal 2 generations

Apple has used the same mechanism for two processor transitions. The original Universal binary arrived with the move from PowerPC to Intel in the mid-2000s, and Universal 2 arrived with the move from Intel to Apple silicon in 2020, supported from Xcode 12 onward.

GenerationArchitectures combinedTransitionTranslation layer
UniversalPowerPC and IntelPowerPC to IntelRosetta
Universal 2Intel and Apple siliconIntel to Apple siliconRosetta 2
The two generations of Universal binaries

In both cases the Universal binary was the preferred end state, while the translation layer was a bridge for software that had not yet been rebuilt. Native code avoids translation overhead and runs with full access to processor features.

Universal binary compared with other compatibility approaches

A Universal binary is one of several ways software reaches Apple silicon. It differs from translation and virtualization because every supported processor runs native instructions.

ApproachHow it worksPerformanceTypical case
Universal binaryNative slice for each architectureNative on bothCurrent Mac apps
Apple silicon onlySingle arm64 sliceNative on Apple siliconApps that dropped Intel support
Intel only with Rosetta 2x86_64 code translated ahead of timeUsually slower than nativeUnmaintained apps
VirtualizationWhole guest OS in a virtual machineNative for arm64 guestsLinux or Windows on ARM
Mac CatalystiPad code rebuilt for macOSNativeApps shared with iPad
Ways to run software on Apple silicon

A Universal binary can also be forced to run its Intel slice on Apple silicon through the Open using Rosetta option in the Finder information window. This helps when an app depends on an old Intel-only plug-in that cannot load into a native process.

Building and inspecting Universal binaries

In Xcode, the standard architectures setting produces a Universal 2 build automatically for release archives. Outside Xcode, compilers accept repeated architecture flags such as -arch arm64 -arch x86_64, and the lipo tool combines, splits or lists slices in an existing file.

CommandWhat it shows or doesTypical use
fileLists architectures in a binaryQuick check of a download
lipo -infoPrints the slices presentVerifying a build
lipo -createMerges single-architecture buildsCustom build pipelines
lipo -thinExtracts one sliceReducing size for one platform
Useful commands for Universal binaries

Users can see the result without Terminal: the Kind field in the Finder information window shows Application (Universal) for a Universal binary and Application (Intel) or Application (Apple silicon) for single-architecture apps.

Trade-offs and common pitfalls

The main cost of a Universal binary is larger file size. Only the compiled code is duplicated, while images, sounds and other resources are shared, so the total growth depends on how much of the app is code; for code-heavy apps it can approach double the executable size.

  • A missing slice in one framework forces the whole app into translation or makes it crash at launch.
  • Precompiled third-party libraries often lag behind and block a native build.
  • Testing only on one architecture hides bugs in the other slice, such as code that assumes Intel behavior.
  • Stripping slices manually to save space breaks the code signature unless the app is signed again.

Because the Intel market keeps shrinking, many developers will eventually drop the x86_64 slice, at which point the app becomes Apple silicon only and stops running on Intel-based Macs.

In simple terms

A Universal binary is like a user manual printed in two languages inside one cover. A reader opens it and simply reads the part in the language they understand, ignoring the other.

For a Mac, the two languages are the instructions for Apple chips and the instructions for Intel chips. The Mac reads only its own part, so the app runs at full speed on either kind of computer, at the cost of a somewhat bigger download.

A practical example

A design studio uses a mix of older Intel-based iMacs and newer MacBook Pro models with M-series chips. Its staff rely on an image-processing app and a small in-house export tool written by a contractor years ago.

The image-processing app is distributed as a Universal 2 binary, so the same installer works on every machine and runs natively everywhere. The in-house tool, however, shows Application (Intel) in Finder and runs through Rosetta 2, taking noticeably longer on large batch exports.

The contractor rebuilds the tool with both architectures in Xcode and verifies the result with lipo -info. After one shared update, the tool runs natively on every Mac in the studio, and batch exports on the Apple silicon laptops finish faster without any change for the Intel users.