Xcode 8语法高亮不起作用 [英] Xcode 8 syntax highlighting doesn't work

查看:328
本文介绍了Xcode 8语法高亮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上面的代码在 Xcode 7 中有正确的语法突出显示。它是Obj-C + Swift的混合物:

The code above has correct syntax highlighting in Xcode 7. It is mix of Obj-C + Swift:

我已更新项目支持 Xcode 8 ,只有少数内容被更改:

I've updated project to support Xcode 8 and only few things was changed:


  • 在构建设置中Swift 2.3支持

  • In Build Settings Swift 2.3 support

并修复了与UIKit中隐式展开属性相关的一些错误

And have fixed few errors related to implicitly unwrapped properties in UIKit

所有项目编译正常 Xcode 8

但是Swift中集成的Obj-C代码没有任何语法突出显示,反之亦然:

还有<<错误类型>> 自动填充问题:

And there is << error type >> problem with autocomplete:

派生数据删除无效,Xcode重启:) CocoaPods版本0.38.2,iOS 7

Derived data deleting doesn't help, Xcode restart either :) CocoaPods version 0.38.2, iOS 7

推荐答案

已修复。问题与项目中存在未编译的目标有关。所以如果你有目标,例如A,B,C和C未编译,导致语法高亮问题。

Fixed. Problem was related to the presence of target in project which is not compiled. So if you have targets e.g. A, B, C and C is not compiled this cause problems with syntax highlighting.

这篇关于Xcode 8语法高亮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆