與Xcode8的磨合

一、安裝條件

想要安裝Xcode8,mac的版本必須是10.11.5以上,所以以下的要先更新電腦系統,然後Xcode8的大小是4.47G

二、安裝注意點

要先把原來的Xcode從應用程序裏刪除掉,否則裝不上去

三、安裝之後如何安裝插件

1.在應用程序中將Xcode8複製一份(用來以後打包上傳)
2.打開”鑰匙串訪問”
3.上面導航欄-鑰匙串訪問-證書處理-創建證書
4.第一行名稱填寫XcodeSigner
第二行不變
第三行選代碼簽名
其他的都不變 點擊創建.
5.終端運行(要等10多分鐘)

$ sudo codesign -f -s XcodeSigner /Applications/Xcode.app

6.這時你可以安裝Alcatraz了
https://github.com/alcatraz/Alcatraz
下載,運行,load bundle(經典的插件安裝過程)

7.然後你就可以使用Alcatraz安裝插件了

8.有些插件作者沒有更新Xcode8的id怎麼辦呢
如果用Alcatraz安裝某插件,但是重啓xcode沒有顯示load bundle
在終端運行如下代碼 添加xcode8的id給插件 應該可以解決大部分插件的問題

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`

我必須要用的插件是FKConsole來使控制檯打印出來的是中文

四、打包會出現的問題

LanZ has conflicting provisioning settings. LanZ is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
warning: no rule to process file '/Users/wxf/LanZhouProject/LanZ/LanZ/LSKit/LSLib-第三方庫/AFNetworking/README.md' of type net.daringfireball.markdown for architecture armv7
warning: no rule to process file '/Users/wxf/LanZhouProject/LanZ/LanZ/LSKit/LSLib-第三方庫/AFNetworking/README.md' of type net.daringfireball.markdown for architecture arm64
Code signing is required for product type 'Application' in SDK 'iOS 10.1'

參考了這個博主的方法解決的
http://blog.csdn.net/mrfine001/article/details/52879430

不用去選自己的證書的,都是ios Developer

五、沒有註釋快捷鍵了,怎麼辦

方法:
打開終端,輸入:

sudo /usr/libexec/xpccachectl

重啓電腦就可以了。

六、注意點

不要打開xib文件點保存,Xcode7會打不開這個項目

先就這些吧,今天遇到的問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章