而在網路上找到的解決方法有: (以下舉例我找到的答案)
- Open your Project Folder.
- Find ProjectName.xcodeproj file.
- Right-Click Copy and Paste to Safe Place.
- Right-Click Show Package Contents.
- Find project.xcworkspace file and delete that file.
- Reopen Your Project and clean and Rebuild.
或是
- Deleting "Derived Data" in the Organizer, and re-open and workspace. (fail to fix)
- "Show Package Contents" on the .xcodeproj file and deleting .xcworkspace
甚至有附上語法
rm -frd ~/Library/Developer/Xcode/DerivedData/*
rm -frd ~/Library/Caches/com.apple.dt.Xcode/*
不幸的是,上述的方法在我自己嘗試以後都無法解決!
在我折騰一番之後我發現另一個解法,首先去工具列的Product --> Scheme --> Edit Scheme...,如下圖
按下去之後會看到如下畫面
點擊左側的Run,然後在右邊的畫面中找到Launch的地方,這邊預設會是Wait for executable to be launched,將它改成Automatically然後按下Close並且執行,理論上這時候就可以解決indexing paused卡住的問題了。
參考網址:
1. https://stackoverflow.com/questions/13831559/xcode-stuck-on-indexing
2. https://stackoverflow.com/questions/26494082/swift-xcode-index-freezing-or-slow
沒有留言:
張貼留言