Swift编译器没有显示文件&编译器崩溃时出错的行

时间:2014-09-03 22:45:28

标签: xcode swift crash

现在我正在处理的项目包含许多文件。我几乎找不到错误点。我该如何打印位置? (我已升级到Xcode 6 Beta 7)

以下是我的错误消息:

Bitcast requires both operands to be pointer or neither
  %.asUnsubstituted = bitcast %CSo7UIColor* %78 to i64, !dbg !397
LLVM ERROR: Broken function found, compilation aborted!
Command /Applications/Xcode6-Beta7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

1 个答案:

答案 0 :(得分:1)

升级到测试版7后,我也遇到了同样的错误。导致错误的行是 myUIButton.setTitleColor(.whiteColor(), forState: .Normal)

并且修复

myUIButton.setTitleColor(UIColor.whiteColor(), forState: .Normal)

希望这也是你的情况。

相关问题