iOS Xcode一直Indexing

本文详细记录了解决Xcode在Indexing过程中卡死的问题。提供了多种解决方案,包括清除缓存、关闭索引功能及修改项目文件等。最终通过备份并删除项目文件夹内的特定文件,成功解决了Indexing卡死的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

突然之间就卡死了

版本: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.

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

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

豪冷啊

你的鼓励是对我的认可!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值