How do we build Intel compatible binary in Sequoia Xcode?

This is recipe I used to do.

Create new project. eg. Storyboard, Objective-C

Select Project, Go to Build Settings > Architectures Change "Build Active Architecture Only" to "NO".

Build... Go to build directory and check with "lipo" command

> lipo -info Products/Debug/my-test.app/Contents/MacOS/my-test
Architecture in the fat file: Products/Debug/my-test.app/Contents/MacOS/my-test are: x86_64 arm64

This has been working for Sonoma.

However, I followed the same procedure in Sequoia, (Sequoia 15.5 Xcode 16.2), it's showing arm64 only.

Architecture in the fat file: Products/Debug/my-test.app/Contents/MacOS/my-test are: arm64

Does anyone have any idea how to build Intel compatible binary in Sequoia dev environment?

Answered by DTS Engineer in 840857022
Archiving the project

True. But that’s not the only factor here.

Historically, the primary control for this was the Build Active Architecture Only build setting, which is different for the Debug and Release build configurations. However, recent versions of Xcode have added an additional factor, namely the run destination. This typically defaults to My Mac, which builds just for your Mac’s architecture. If you want a universal binary, set it to Any Mac.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Archiving the project by choosing Product > Archive creates a binary with both Apple Silicon and Intel architectures for me on macOS 15.

Accepted Answer
Archiving the project

True. But that’s not the only factor here.

Historically, the primary control for this was the Build Active Architecture Only build setting, which is different for the Debug and Release build configurations. However, recent versions of Xcode have added an additional factor, namely the run destination. This typically defaults to My Mac, which builds just for your Mac’s architecture. If you want a universal binary, set it to Any Mac.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Cool! Confirmed both suggestions work.

  1. Archive
  2. Set run destination to "Any Mac".

Thank you both!

How do we build Intel compatible binary in Sequoia Xcode?
 
 
Q