一.pod instsall 下载依赖,应该特别慢慢解决方法:
1.rm -rf ~/.cocoapods
2.mkdir -p ~/.cocoapods/repos
3.cd ~/.cocoapods/repos
4.git clone git://cocoapodscn.com/Specs.git master
这个过程需要下载几百兆
下载完成后
进入到拉下来的代码中在(我是放在下载里面了)
pod install
然后这个过程就快多了
二.打包
product-archive-AD-hoc-一直next
三.当遇到某些文件缺失的时候
如果文件没了,右键选择 add file to吧这个文件在添加一遍即可
特别注意:千万不要去 https://github.com/CocoaPods/Specs 这里download zip,然后把master文件夹复制到~/.cocoapods/repos/
这里去,因为这样master文件夹里少了一个.git文件,之后是没法用的。