NSBundle
- 一个NSBundle代表一个文件夹,利用NSBundle能访问对应的文件夹
- 利用mainBundle就可以访问软件资源包中的任何资源
- 模拟器应用程序的安装路径
1
/Users/aplle/资源库/Application Support/iPhone Simulator/7.1/Applications
Xcode文档安装路径
1 | /Applications/Xcode.app/Contents/Developer/Documentation/DocSets |
Xcode模拟器安装路径
1 | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs |
Xcode自带头文件的路径
1 | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers |
修改了系统自带头文件后,Xcode会报错
解决方案:删掉下面文件夹的缓存即可(aplle是电脑的用户名)
1 | /Users/aplle/资源库/Developer/Xcode/DerivedData |
或者
1 | /Users/aplle/Library/Developer/Xcode/DerivedData |
Xcode插件的安装路径
可以在这里删除内容来卸载插件
1 | aplle是用户名 |
/Users/apple/Library/Application Support/iPhone Simulator/ 7.1/Applications/ 246D511D-E377-492F-8D02-B7AB3589758E/Documents
1 |
|
~/Library/Developer/Xcode/UserData/CodeSnippets
1 |
|
lipo -create Debug-iphoneos/libBestpayLogin.a Debug-iphonesimulator/libBestpayLogin.a -output libBestpayLogin.a