XCode 8 代码高亮以及自动补全的问题

升级到Xcode 8之后发现代码高亮(syntax highlighting)和代码自动补全(code completion)的功能没有了,试过重启Xcode,删除DeriveData,重启Mac都没用。Google以后还是在StackOverFlow找到了方法。

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.

targets

如图,当一个工程含有多个target的时候,需要对每一个target进行编译(Command+b),之后问题就解决了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容