Mac升级10.15导致pod报错 -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2

今天爱分享给大家带来Mac升级10.15导致pod报错 -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2,希望大家能够喜欢。

升级了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否则会报以下错误

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

人已赞赏
IOS

xcode12 sdk编译出来的架构没有x86_64解决办法

2020-10-17 16:25:42

IOS

更新到xcode12.0 ,编译报错Incompatible block pointer types sending ‘void (^__strong)(__strong id<TYAttribute

2020-10-17 16:30:37

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
'); })();