Xcode 10.2, Swift 5, Command compileSwift failed while build the program with Release Scheme

前端 未结 7 1385
我寻月下人不归
我寻月下人不归 2021-01-03 22:38

I\'m using Xcode 10.2, Swift 5.

With Debug scheme, no issue happens, but with Release scheme when I build or archive, it shows Command compileSwift failed with a non

7条回答
  •  旧巷少年郎
    2021-01-03 23:27

    I had to set "Optimization Level" in "Swift Compiler - Code Generation" to "Release" - "No Optimization [-Onone]" from "Optimize for speed" to make Cache pass Archive.

    Same with SwiftyBeaver

    It seems a problem related to Xcode 10.2. Also other pod projects seems to be fine with Optimization, like Toucan or XCGLogger.

提交回复
热议问题