Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

后端 未结 24 2347
长情又很酷
长情又很酷 2020-11-27 13:18

I am getting this error on archive:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with

24条回答
  •  庸人自扰
    2020-11-27 14:02

    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.

    1. Open up your project and click on the projects root directory.
    2. Click the build settings tab.
    3. Search for Swift Compiler - Code Generation and under Optimization Level make sure Release is set to None.

    EDIT

    After upgrading to Xcode 6.1 these instructions caused other issues when archiving (building for debug/device worked fine). Setting the optimization to Fastest allowed me to archive again. There are apparent issues with Swift compiling still (archiving specifically).

    Can't archive working 6.0.1 Swift project in Xcode 6.1 / Segmentation fault: 11

    EDIT I was not able to fund the Build Settings tab, until I read this answer.

    how to find the build settings tab

提交回复
热议问题