I’m going through a difficulty whereas archiving a macOS app in Xcode. The app runs wonderful in Debug. I’ve efficiently archived this identical mission earlier than. No main structural adjustments had been made lately. The error seems solely when attempting to Archive. Operating / constructing usually nonetheless works. When I attempt to archive, Xcode fails with the next generic error:
Command SwiftCompile failed with a nonzero exit code
It is a Swift / SwiftUI macOS utility, and the problem seems to be particular to the Archive motion, which makes use of the Launch construct configuration. Cleansing the construct folder, deleting Derived Information, restarting Xcode, and rebuilding the mission didn’t resolve the issue. I’m utilizing xcode model 26
Right here is the screenshot :-


