欢迎大家来到IT世界,在知识的湖畔探索吧!
如果出现以下错误:
ERROR: Could not find a valid gem ‘cocoapads’ (>= 0) in any repository
ERROR: Possible alternatives: cocoapods, cocoaseeds, socmap_adf
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /usr/bin directory.
你就干这个命令:
sudo gem install cocoapods -n /usr/local/bin
欢迎大家来到IT世界,在知识的湖畔探索吧!
结果往下走又出问题了:
欢迎大家来到IT世界,在知识的湖畔探索吧!cuixideiMac:~ cuixi$ pod setup Setting up CocoaPods master repo fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' $ /usr/bin/git -C /Users/cuixi/.cocoapods/repos/master fetch origin --progress fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. [!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
网上查的要输入卸载命令,结果又出问题了
最后没办法:~/.cocoapods/ 前往这个文件夹,手动删除;
问题终于解决了!
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://itzsg.com/67389.html