Xcode macOS Archive fails with “Command SwiftCompile failed with a nonzero exit code”, but app runs fine
Summary The issue at hand is an Xcode archiving error for a macOS app, where the Command SwiftCompile fails with a nonzero exit code. This error occurs specifically when trying to archive the app, while it runs fine in debug mode. Despite attempts to clean the build folder, delete Derived Data, restart Xcode, and rebuild … Read more