Xcode 相關路徑地址
************************************
//清除緩存Xcode垃圾緩存,可以刪除不影響,
1、Xcode對模擬器緩存路徑:如果刪除下次運行時間會較長,但不影響使用。
~/Library/Developer/Xcode/DerivedData
2、Xcode中卸載多余版本模擬器位置,
/資源庫/Developer/CoreSimulator/Profiles/Runtimes/
3、移除對舊設備的支持影響:可重新生成;再連接舊設備調試時,會重新自動生成。
~/Library/Developer/Xcode/iOS DeviceSupport
************************************
1、Xcode10升級編譯報錯
具體就是:
我們去Xcode10以前的版本
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
下面找到
libstdc++.6.0.9.tbd
xcode10升級后項目編譯報錯? 升級后xcode缺少libstdc++.6.0.9.tbd
http://www.cocoachina.com/bbs/read.php?tid-1759588.html
復制到Xcode10相對應的目錄里面,然后就能正常跑起來項目了。
1.1
//真機地址:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
模擬器地址:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
同樣如果是模擬器跑的話,那么iPhoneSimulator.platform相對應路徑也復制一份。
2、
Mac系統升級git會找不到并且報錯:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun
解決辦法:
xcode-select --install
3、Xcode真機調試包的路徑:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
4、Xcode對模擬器緩存路徑:如果刪除下次運行時間會較長,但不影響使用。
~/Library/Developer/Xcode/DerivedData
5、Xcode中卸載多余模擬器位置
/資源庫/Developer/CoreSimulator/Profiles/Runtimes/
6、移除對舊設備的支持影響:可重新生成;再連接舊設備調試時,會重新自動生成。
~/Library/Developer/Xcode/iOS DeviceSupport
7、提交App Store或者Adhoc時打包的ipa文件路徑,刪除了不可恢復,可重新打包。
~/Library/Developer/Xcode/Archives
8、刪除多余配置證書路徑:
~/Library/MobileDevice/Provisioning Profiles
9、pod緩存路徑:
~/Library/Caches/CocoaPods/Pods/Release
10、清除模擬器運行產生的文件 Xcode編譯項目緩存垃圾的目錄:
輸入"~/Library/Developer/CoreSimulator/Devices/"? ?
11、代碼塊路徑
~/Library/Developer/Xcode/UserData/CodeSnippets
調試方法
XCode來定位循環引用的方法:
1)在product-Analyze中使用靜態分析來檢測代碼中可能存在循環引用的問題
2)在Xcode-open developer tool-Instruments打開工具集,選擇Leaks工具可以對已安裝的應用進行內存泄漏檢測,此工具能檢測靜態分析不會提示,但是到運行時才會出現的內存泄漏問題。
Xcode來定位及分析僵尸對象方法:
1 )在product-scheme-edit scheme-diagnostics中將enable zombie objects勾選上。
2)在Xcode-open developer tool-Instruments打開工具集,選擇Zombies工具可以對已安裝的應用進行僵尸對象檢測。