与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会打不开这个项目

先就这些吧,今天遇到的问题

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