常用插件:
獲取Xcode的uuid:defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
Xcode改名后慰毅,安裝部份命令行可能會失敗胳岂,
解決方法如下:
sudo xcode-select --switch /Applications/XcodePlug.app/Contents/Developer
其中/Applications/XcodePlug.app/是你xcode的路徑野蝇,然后可以安裝xcode命令行工具:
sudo xcode-select --install
sudo xcode-select --switch /Applications/XcodePlug.app/Contents/Developer
Xcode插件失效:find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add \
defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID` `
xcode8下快捷鍵 command + / 注釋失效: 解決方法1: Xcode -> preferences -> key bindings 中的comment selection 是否設(shè)置上快捷鍵了 解決方法2:http://blog.csdn.net/jnbbwyth/article/details/52576169 第四個問題詳解
.Xcode8沒有ios8以前的版本(已解決):
1.應(yīng)用程序-xcode 顯示包內(nèi)容-Contents-Developer-Platforms-iPhoneOS.platform-DeviceSupport 把里邊 6.0 6.1 7.0 7.1 的文件夾粘貼到xcode8 對應(yīng)的文件夾內(nèi) 2. 應(yīng)用程序-xcode 顯示包內(nèi)容-Contents-Developer-Platforms-iPhoneOS.platform-Developer-SDKs-iPhoneOS.sdk-SDKSettings.plist 文件下DefaultProperties - DEPLOYMENT_TARGET_SUGGESTE... 該數(shù)組中添加 6.0 6.1 7.0 7.1 對應(yīng)的測試版本,(注意:如果你的文件是只讀模式的,那么是不能修改的,你需要把Contents-Developer-Platforms-iPhoneOS.platform-Developer-SDKs-iPhoneOS.sdk-SDKSettings.plist 這些文件的只讀模式都改成讀寫模式)這個版本排序一定要是從小到大,直接把小的添加到下面是不管用的,必須把小的拖到最上邊.這個時候退出你的Xcode,然后重新啟動,你就會發(fā)現(xiàn)ios8.0以下的真機 也可以正常測試了
教你如何科學的在Xcode8上使用插件 轉(zhuǎn)鏈接:http://www.cocoachina.com/bbs/read.php?tid-1705417.html
runtime runloop 翻譯:http://www.cocoachina.com/bbs/read.php?tid-1712036.html