Mac升級(jí)10.15導(dǎo)致pod報(bào)錯(cuò)?
第一種問(wèn)題:-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否則會(huì)報(bào)以下錯(cuò)誤
進(jìn)行上面的操作之后要是還會(huì)報(bào)錯(cuò)如下:
第二種:是下圖
第二種的解決方法是:
在 Mac OS 10.14 版本以下執(zhí)行:open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg ? ?
??在 Mac OS 10.14 版本以上執(zhí)行:xcode-select --install ?自動(dòng)彈出一個(gè)窗口辛掠;然后根據(jù)提示xxxxxxx安裝完后谢谦,再執(zhí)行: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
最后結(jié)束,可以正常使用了