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),之后問題就解決了。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容