美文网首页
Mac升级10.15导致pod报错 -bash: /usr/lo

Mac升级10.15导致pod报错 -bash: /usr/lo

作者: i_MT | 来源:发表于2020-07-14 14:46 被阅读0次

Mac升级10.15导致pod报错 

第一种问题:-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory

第一种解决:sudo gem install -n /usr/local/bin cocoapods    一定要加-n /usr/local/bin否则会报以下错误


进行上面的操作之后要是还会报错如下:

第二种:是下图

第二种的解决方法是:

在 Mac OS 10.14 版本以下执行:open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg    

  在 Mac OS 10.14 版本以上执行:xcode-select --install  自动弹出一个窗口;然后根据提示xxxxxxx安装完后,再执行:sudo gem install cocoapods  

然后192:~XXX$ xcode-select --install

xcode-select: note: install requested for command line developer tools

192:~ XXX$ sudo gem install cocoapods

Building native extensions. This could take a while...

Successfully installed ffi-1.13.1

Successfully installed ethon-0.12.0

Successfully installed typhoeus-1.4.0

Successfully installed netrc-0.11.0.............

等待安装完成提示

rsing documentation for cocoapods-1.9.3

Installing ri documentation for cocoapods-1.9.3

Done installing documentation for ffi, ethon, typhoeus, netrc, cocoapods-core, claide, cocoapods-deintegrate, cocoapods-downloader, cocoapods-plugins, cocoapods-search, cocoapods-stats, cocoapods-trunk, cocoapods-try, molinillo, atomos, colored2, nanaimo, xcodeproj, escape, fourflusher, gh_inspector, ruby-macho, cocoapods after 29 seconds

23 gems installed

最后结束,可以正常使用了

相关文章

网友评论

      本文标题:Mac升级10.15导致pod报错 -bash: /usr/lo

      本文链接:https://www.haomeiwen.com/subject/mltfhktx.html