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.

这个方案尝试了多次
最终终于可以了!!!

如果你的还是不行的话
就尝试重启电脑再试


发布了201 篇原创文章 · 获赞 220 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/xjh093/article/details/102837287