pod install报错当前版本太低

1,846 阅读1分钟

开发中pod install可能会遇到如下报错内容:

[!] The version of CocoaPods used to generate the lockfile (1.9.0.beta.3) is higher than the version of the current executable (1.6.1). Incompatibility issues may arise.

大致意思是当前的版本太低,可能会导致一些问题。 解决方法就是升级一下cocoapods的版本

sudo gem install cocoapods

注意

上面的命中一定要带上 sudo, 不然会提示权限问题