模擬器的位置: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs 文檔安裝位置: /Applications/Xcode.app/Contents/Develope ...
模擬器的位置:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
文檔安裝位置:
/Applications/Xcode.app/Contents/Developer/Documentation/DocSets
插件保存路徑:
~/Library/ApplicationSupport/Developer/Shared/Xcode/Plug-ins
自定義代碼段的保存路徑:
~/Library/Developer/Xcode/UserData/CodeSnippets/
如果找不到CodeSnippets文件夾,可以自己新建一個CodeSnippets文件夾。
證書路徑
~/Library/MobileDevice/Provisioning Profiles
獲取家目錄路徑的函數
NSString
*homeDir =
NSHomeDirectory
();
獲取Documents目錄路徑的方法
NSArray
*paths =
NSSearchPathForDirectoriesInDomains
(
NSDocumentDirectory
,
NSUserDomainMask
,
YES
);
NSString
*docDir = [paths objectAtIndex:0];
獲取Documents目錄路徑的方法
NSArray
*paths =
NSSearchPathForDirectoriesInDomains
(
NSCachesDirectory
,
NSUserDomainMask
,
YES
);
NSString
*cachesDir = [paths objectAtIndex:0];
獲取tmp目錄路徑的方法:
NSString
*tmpDir =
NSTemporaryDirectory
();