launch older version of Xcode on macOS 15.4?

I am trying to run Xcode 15 on macOS 15.4. As we need to build framework with older versions of Xcode. Any work around for it?

Why do you need to build a framework with an older version? What's the technical reason you can't build it in macOS Sequoia with Xcode 16?

We need build a xcframework if I build it with new Xcode version and the app is build with old Xcode version that will not work

I also need the ability to launch my app with Xcode 15.4 on the latest MacOS 15.4.1. Previously I was able to download Xcode 15.4, right click in Finder and open Xcode's Package Contents>MacOS and double click on the executable to open it. Now, zsh immediately kills it when I try.

Logs from the terminal

Last login: Mon Apr 28 12:07:42 on ttys004
/Applications/Xcode.app/Contents/MacOS/Xcode ; exit;
Macbook-Pro@SupposedlySam ~ % /Applications/Xcode.app/Contents/MacOS/Xcode ; exit;
zsh: killed     /Applications/Xcode.app/Contents/MacOS/Xcode

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

@SupposedlySam

macOS 15 or later supports Xcode 16 or later as described in the Xcode Releases table.

@DTS Engineer

Okay, so Xcode 15 SDK builds on Sequoia won't work for clients on older Xcodes, That's a major problem due to Swift forward incompatibility.

Any workarounds? Can we use xcode-select with an older Xcode install on Sequoia for CLI builds? will that work?

launch older version of Xcode on macOS 15.4?
 
 
Q