gpt4 book ai didi

uiview - Swift 编译器错误 "failed with exit code 254"

转载 作者:行者123 更新时间:2023-11-28 07:16:38 25 4
gpt4 key购买 nike

当我将 Xcode 6 从 Beta 4 更新到 Beta 6 时,我遇到了这个(新的)编译器错误,我不知道如何修复它。

<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
Command /Applications/Xcode6-Beta6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 254

关注的是这些

let reuseId = "test"

var anView = mapView.dequeueReusableAnnotationViewWithIdentifier(reuseId)
if anView == nil{...}

谢谢。

最佳答案

我在 beta 6 和 7 中存档时遇到了类似的问题。我最终追踪到它与 Swift 编译器 - 代码生成 - 优化级别 - 最快 [-O] 有关。如果将优化级别设置为无,一切正常,但是当设置为其他任何内容时,xcode 会抛出 254 错误。

关于uiview - Swift 编译器错误 "failed with exit code 254",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25592018/

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