CocoaPods使用及常见问题

2016-07-14  本文已影响31人  ldldlkdldld

需要注意的地方

FAQ

  1. 如何从项目中移除CocoaPods?
    略复杂。

参考:http://stackoverflow.com/questions/16427421/how-to-remove-cocoapods-from-a-project

pod install

参考:http://stackoverflow.com/questions/13751147/remove-or-uninstall-library-previously-added-cocoapods

pod update POD_NAME

下面命令在更新时指定pod版本

pod 0.38.2 update POD_NAME --no-repo-update


- 安装提示『ERROR:  While executing gem ... (Errno::EPERM)
  Operation not permitted - /usr/bin/pod』

sudo gem install -n /usr/local/bin cocoapods


- 执行特定版本的cocoapods,比如0.38.0

pod 0.38.0 install


- 安装老版本的CocoaPods

sudo gem install cocoapods -v 1.0.0


### 错误及解决

1. Specs satisfying the `FLEX (from `https://github.com/Flipboard/FLEX`, tag `2.4.0`)` dependency were found, but they required a higher minimum deployment target.

Podfile里面target platform版本过低,需要指定更高的版本,这种情况通常需要安装低版本的库,或修改工程的部署系统版本。
上一篇下一篇

猜你喜欢

热点阅读