Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
问题 I am getting this error on archive: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 How to solve it? Please see the screenshot. 回答1: This problem occurs when the Swift optimization level is not set to None for Release . Set the value to None and the issue goes away. Open up your project and click on the projects root directory. Click the build settings tab. Search for Swift Compiler - Code Generation and under