Xcode中項(xiàng)目的緩存路徑
/Users/username/Library/Developer/Xcode/DerivedData
Xcode自定義代碼塊 存放路徑
/Users/username/Library/Developer/Xcode/UserData/CodeSnippets
Xcode中框架路徑
Frameworks框架存放路徑
/Applications/Xcode 6.3.2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks
Xcode第三方插件路徑
插件安裝路徑
/Users/lvvl/Library/Application Support/Developer/Shared/Xcode/Plug-ins
更改KSImageNamed這個(gè)自動(dòng)匹配圖片插件的內(nèi)部方法:
- 1: 進(jìn)入 /Users/lvvl/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSImageNamed.xcplugin/Contents/Resources/Completions.plist
- 2: 拷貝1個(gè)數(shù)組,更改里面的 imageNamed:為自定義的方法名
- 3: 重啟Xcode,以后使用指定的方法, 就能自動(dòng)匹配圖片
Xcode文檔安裝
位置1:
/Applications/Xcode.app/Contents/Developer/Documentation/DocSets
注意: 拷貝之前最好將默認(rèn)的文檔刪除, 因?yàn)槿绻瑫r(shí)存在高版本和低版本的文檔, 那么低版本的不會(huì)顯示
或者位置2:
/Users/uesrname/Library/Developer/Shared/Documentation/DocSets
如果沒有該文件夾可以自己創(chuàng)建一個(gè)
Xcode修改項(xiàng)目模板以及main函數(shù)中的內(nèi)容
修改項(xiàng)目模板
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate/TemplateInfo.plist
修改OC文件頭部的描述信息
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/Source/Cocoa Class.xctemplate/TemplateInfo.plist
Xcode內(nèi)存管理中相關(guān)設(shè)置
關(guān)閉ARC的辦法(ARC會(huì)屏蔽內(nèi)存管理的一些操作,會(huì)影響學(xué)習(xí)內(nèi)存管理)瓶竭,在Xcode 中,單擊左上角藍(lán)色項(xiàng)目名圖標(biāo)
選Build Settings
在選里面的關(guān)鍵字arc
找到ARC- -》將YES改成NO
開啟內(nèi)存管理中的 僵尸類功能步驟:
選中模擬器左邊那個(gè)target圖標(biāo)
edit Scheme
Run
勾選Obiect-C Enable Zombie Objects
Xcode的ARC轉(zhuǎn)換
1》將非ARC項(xiàng)目全部轉(zhuǎn)成ARC項(xiàng)目
Edit- ->Convert to Objective-C ARC
2》在項(xiàng)目中想讓ARC代碼和非ARC代碼共存的方法
點(diǎn)擊左上角藍(lán)色的項(xiàng)目圖標(biāo)- ->Build Phases- ->Compile Sources- ->雙擊想要設(shè)置的.m文件- ->設(shè)置Compiler Flags
輸入-f-objc-arc(當(dāng)前.m文件使用ARC)
或者輸入-fno-objc-arc(當(dāng)前.m文件不使用ARC)
3> 將MRC的所有代碼編譯成靜態(tài)庫(kù)(直接使用靜態(tài)庫(kù))
感謝原作者http://www.reibang.com/p/04514a88a046 的分享, 順便學(xué)習(xí)了兩種markdown語(yǔ)法
呵呵哈哈哈
- 1:噢哈哈哈哈哈