天天看點

iOS Xcode一直Indexing

突然之間就卡死了

版本:Xcode 11.1

搜尋​

​Xcode一直Indexing​

​ 找到的方案有:

  • 1.清除XCode的緩存,再重新開機XCode.

終端指令操作:

rm -frd ~/Library/Caches/com.apple.dt.Xcode/*
rm -frd ~/Library/Developer/Xcode/DerivedData      
  • 2.關閉XCode的索引.

    一個是關,一個是開

defaults write com.apple.dt.XCode IDEIndexDisable 1 
defaults write com.apple.dt.XCode IDEIndexDisable 0      

或者

defaults write com.apple.dt.Xcode IDEIndexDisable -bool true
defaults write com.apple.dt.Xcode IDEIndexDisable -bool false      
  • 3.結束對應程序的

然而,都沒什麼用!!!

嘗試了重新開機​​

​Xcode​

​​多次,還是沒用!!!

嘗試了重新開機電腦多次,依舊沒用!!!

最後嘗試

​​方案​​

1.Open your Project Folder.
2.Find ProjectName.xcodeproj file.
3.Right-Click Copy and Paste to Safe Place.
4.Right-Click Show Package Contents.
5.Find project.xcworkspace file and delete that file.
6.Reopen Your Project and clean and Rebuild.

If your problem is not solved then replace the file with your backup file.