1.下载某些三方库时,pod install会出现错误

1
2
3
pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lock file (1.0.1is higher than the version of the current executable (1.1.0.beta.1). Incompatibility issues may arise.

 2.需要更新Cocoapods

1
sudo gem update --system

 提示错误:

1
2
3
Updating rubygems-update
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/update_rubygems

 3.这是由于没有权限,执行以下代码,就可以了

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

4.查看此时cocoapods版本,成功了!!!

1
pod --version

 

1.下载某些三方库时,pod install会出现错误

1
2
3
pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lock file (1.0.1is higher than the version of the current executable (1.1.0.beta.1). Incompatibility issues may arise.

 2.需要更新Cocoapods

1
sudo gem update --system

 提示错误:

1
2
3
Updating rubygems-update
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/update_rubygems

 3.这是由于没有权限,执行以下代码,就可以了

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

4.查看此时cocoapods版本,成功了!!!

1
pod --version

 

相关文章:

  • 2021-08-19
  • 2021-07-11
  • 2022-12-23
  • 2021-11-02
  • 2022-02-09
  • 2021-09-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-02-10
  • 2021-04-06
  • 2022-12-23
相关资源
相似解决方案