xcode 升級到最新的11.1版本打開項目卡頓解決方案


xcode 升級到最新的11.1版本打開項目卡頓解決方案轉 

轉 https://www.jianshu.com/p/5f23d5ce20b7?utm_campaign=haruki&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

解決方法1:

在xcode選項-》Build Settings-》Build Options-》Debug Information Format選中DWARF

 
20181228154716670.png
解決方法二:

在終端中輸入:
defaults write com.apple.dt.XCode IDEIndexDisable 1
(若遇到其他情況使用如下命令復原')
defaults write com.apple.dt.XCode IDEIndexDisable 0

解決方法三:

打開系統偏好設置——通用,把“最近使用的項目”由默認10,修改為5或者更少。

 
image.png
解決方法四:

提高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 定位到當前編輯的文件 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM