xcode 升級到最新的11.1版本打開項目卡頓解決方案轉
解決方法1:
在xcode選項-》Build Settings-》Build Options-》Debug Information Format選中DWARF
解決方法二:
在終端中輸入:
defaults write com.apple.dt.XCode IDEIndexDisable 1
(若遇到其他情況使用如下命令復原')defaults write com.apple.dt.XCode IDEIndexDisable 0
解決方法三:
打開系統偏好設置——通用,把“最近使用的項目”由默認10,修改為5或者更少。
解決方法四:
提高xcode的線程數
defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks 4
Xcode默認的編譯線程數,就是cpu的內核數。可適當增加編譯線程數來提高編譯速度線程數的具體設置方法如下:
1.獲取當前內核數:
sysctl -n hw.ncpu
2.設置編譯線程數:
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 8
3.獲取編譯線程數:
defaults read com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks
4.顯示編譯時長:
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
如果還是卡頓可以參考這個博客:https://www.jianshu.com/p/693ff928449d
https://www.cnblogs.com/songxing10000/p/5012604.html
xcode11編譯就卡死【已解決】
code中利用全局搜索搜索出結果后,如何利用快捷鍵將光標迅速定位到搜索出的文件中?
common+shift+O 搜索文件 common+shift+J 定位到當前編輯的文件
