Xcode 相關(guān)路徑地址
************************************
//清除緩存Xcode垃圾緩存丧裁,可以刪除不影響瞧柔,
1扳埂、Xcode對(duì)模擬器緩存路徑:如果刪除下次運(yùn)行時(shí)間會(huì)較長(zhǎng)容为,但不影響使用恩溅。
~/Library/Developer/Xcode/DerivedData
2隔箍、Xcode中卸載多余版本模擬器位置,
/資源庫(kù)/Developer/CoreSimulator/Profiles/Runtimes/
3脚乡、移除對(duì)舊設(shè)備的支持影響:可重新生成蜒滩;再連接舊設(shè)備調(diào)試時(shí),會(huì)重新自動(dòng)生成奶稠。
~/Library/Developer/Xcode/iOS DeviceSupport
************************************
1俯艰、Xcode10升級(jí)編譯報(bào)錯(cuò)
具體就是:
我們?nèi)code10以前的版本
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
下面找到
libstdc++.6.0.9.tbd
xcode10升級(jí)后項(xiàng)目編譯報(bào)錯(cuò)? 升級(jí)后xcode缺少libstdc++.6.0.9.tbd
http://www.cocoachina.com/bbs/read.php?tid-1759588.html
復(fù)制到Xcode10相對(duì)應(yīng)的目錄里面,然后就能正常跑起來項(xiàng)目了锌订。
1.1
//真機(jī)地址:
/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相對(duì)應(yīng)路徑也復(fù)制一份。
2辆飘、
Mac系統(tǒng)升級(jí)git會(huì)找不到并且報(bào)錯(cuò):xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun
解決辦法:
xcode-select --install
3啦辐、Xcode真機(jī)調(diào)試包的路徑:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
4谓传、Xcode對(duì)模擬器緩存路徑:如果刪除下次運(yùn)行時(shí)間會(huì)較長(zhǎng),但不影響使用芹关。
~/Library/Developer/Xcode/DerivedData
5续挟、Xcode中卸載多余模擬器位置
/資源庫(kù)/Developer/CoreSimulator/Profiles/Runtimes/
6、移除對(duì)舊設(shè)備的支持影響:可重新生成侥衬;再連接舊設(shè)備調(diào)試時(shí)诗祸,會(huì)重新自動(dòng)生成。
~/Library/Developer/Xcode/iOS DeviceSupport
7轴总、提交App Store或者Adhoc時(shí)打包的ipa文件路徑直颅,刪除了不可恢復(fù),可重新打包肘习。
~/Library/Developer/Xcode/Archives
8际乘、刪除多余配置證書路徑:
~/Library/MobileDevice/Provisioning Profiles
9、pod緩存路徑:
~/Library/Caches/CocoaPods/Pods/Release
10漂佩、清除模擬器運(yùn)行產(chǎn)生的文件 Xcode編譯項(xiàng)目緩存垃圾的目錄:
輸入"~/Library/Developer/CoreSimulator/Devices/"? ?
11脖含、代碼塊路徑
~/Library/Developer/Xcode/UserData/CodeSnippets
調(diào)試方法
XCode來定位循環(huán)引用的方法:
1)在product-Analyze中使用靜態(tài)分析來檢測(cè)代碼中可能存在循環(huán)引用的問題
2)在Xcode-open developer tool-Instruments打開工具集,選擇Leaks工具可以對(duì)已安裝的應(yīng)用進(jìn)行內(nèi)存泄漏檢測(cè)投蝉,此工具能檢測(cè)靜態(tài)分析不會(huì)提示养葵,但是到運(yùn)行時(shí)才會(huì)出現(xiàn)的內(nèi)存泄漏問題。
Xcode來定位及分析僵尸對(duì)象方法:
1 )在product-scheme-edit scheme-diagnostics中將enable zombie objects勾選上瘩缆。
2)在Xcode-open developer tool-Instruments打開工具集关拒,選擇Zombies工具可以對(duì)已安裝的應(yīng)用進(jìn)行僵尸對(duì)象檢測(cè)。