gpt4 book ai didi

ios - 为什么 "swift compilation time debugging options"导致 CompileSwift 失败?

转载 作者:行者123 更新时间:2023-12-04 13:25:07 28 4
gpt4 key购买 nike

我在我的项目中使用这些标志:

OTHER_SWIFT_FLAGS = "-driver-time-compilation -Xfrontend -debug-time-compilation -Xfrontend -debug-time-function-bodies -Xfrontend -debug-time-expression-type-checking";
当我将 Xcode 版本从 12.4 升级到 12.5.1 时,我开始收到此错误:
<unknown>:0: error: unknown argument: '-debug-time-compilation'
Command CompileSwift failed with a nonzero exit code
是否有任何 llvm 更新或类似的更新?

最佳答案

苹果的回答:

Xcode 12.5 uses a new release of the Swift, Swift 5.4. Prior releasesof Xcode 12 contained Swift 5.3, as documented here:https://developer.apple.com/support/xcodeThe debug-time-compilation flag is removed from Swift 5.4 because it nolonger did anything, being superseded by the driver-time-compilationflag. You can see the commit of this change:https://github.com/apple/swift/commit/2198d7174c5857a92e42c5e76e1c1bb9a78db772

关于ios - 为什么 "swift compilation time debugging options"导致 CompileSwift 失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68884658/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com