加速
- 使用proxychain 这是最稳定的方法。
- 使用清华镜像 mirrors.tuna.tsinghua.edu.cn/help/CocoaP…
异常处理
1.嵌入不正确
pod install 后有可能报这个错误
Go to Xcode > Project > Info > Configurations
Set the values for Debug > Pods-XXX.debug and Release = Pods-XXX.release 原答案:stackoverflow
2. 某些异常导致,重装CocoaPods
执行 pod deintegrate
这样就可以解除项目中的CocoaPods。
重新安装
删除pod.lock文件和pod文件夹
执行pod install
3. 在podfile移除某个项目后打包报错framework not found
明明pod已经移除,一打包提示一个依赖仍然存在 提示link的时候错误 最后在 build settings -> linking -> over linker flag
其实还有更简单的方法,就是在配置这些地方搜索,只要有搜索框,就把报错的依赖库名字填进去,看有没有对应的选项,有就给它删除掉。 其实主要是build settings和build Phase。这次找到问题就是通过搜索库名mobileplayer找到的。