Facing issue - bad interpreter: No such file or directory when used pod update on MAC

丶灬走出姿态 提交于 2021-01-29 15:17:22

问题


Getting error like:

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

I have tried to use sudo gem install cocoapods but it is giving

current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.0/ext/ffi_c /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20200605-20675-yfsgd0.rb extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h

Please help with this. Thanks!


回答1:


Came to know that it is due to xcode installation issue. so have to agree to term

step 1: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

step 2: sudo gem install cocoapods (use sudo gem install cocoapods -n /usr/local/bin if you get permission issue)

step 3: pod update



来源:https://stackoverflow.com/questions/62215323/facing-issue-bad-interpreter-no-such-file-or-directory-when-used-pod-update-o

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!