The project builds successfully but unable to archive project on Xcode 26. error: "Command SwiftCompile failed with a nonzero exit code"
Xcode 26 archive fails
Take a look at your full build log, as it will have details about what went wrong. You will need to expand the step with the error to see the full text output of that step to get additional info.
— Ed Ford, DTS Engineer
Thanks Ed for responding, will surely check it out. It would be great if you can answer one more question here, can archive fail because of not using macOS Tahoe but using Xcode 26 with macOS Sequoia currently?
Even tries with swift 6.1.2 toolchain
can archive fail because of not using macOS Tahoe but using Xcode 26 with macOS Sequoia currently?
The world of build configurations is vast, so I can't rule it out in general, and especially since Xcode 26 is a beta. Rather than speculating on a potentially infinite problem space, the build log's details on the failure will give a concrete starting point to investigate.
— Ed Ford, DTS Engineer