当试图编译我的项目时,AppCode中出现以下错误(Xcode仅打印"错误:命令...部分"):
AppCode:
Note:Stored value type does not match pointer operand type!
Note: store %CSo7UIColor* %135, %objc_object** %136, align 8, !dbg !4686
Error: %objc_object*LLVM ERROR: Broken function found, compilation aborted!
Error:Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
有没有办法真正得到引起问题的行号?注意说与UIColor相关的东西,但这是我从中得到的唯一东西:S
P.S:我删除了派生数据,检查了以前的提交,创建了一个新项目,但问题仍然存在。我几乎可以肯定问题是由于依赖性造成的。
答案 0 :(得分:0)
发现问题......
self.navigationController!.navigationBar.titleTextAttributes = [ NSForegroundColorAttributeName : .clearColor()]
.clearColor()
应该有效...通过附加UIColor修复它。