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