注:記得先備份你的項目
1.Xcode -> Preferences

2.Locations -> 點擊下邊小箭頭

3.刪除DerivedData目錄下的所有文件

4.Sources Control -> Refresh Status

5.Sources Control -> Commit

6.將左邊的文件全選 -> 隨便輸入一下說明 -> Commit

7.重復步驟4-6,直到第六步左邊沒有文件為止。
8.boom!你會發(fā)現(xiàn)警告已經(jīng)沒了!
參考:http://stackoverflow.com/questions/37972728/swift-3-xcode-8-upgrade-100s-of-deriveddata-files-missing-from-working-copy