關(guān)于安裝pod時的報錯:
To see why this extension failed to compile, please check the mkmf.log which can be found here:
? /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.15.0/mkmf.log
extconf failed, exit code 1
解決方案:
文件夾前往:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0?
所以將20復(fù)制粘貼將universal-darwin20文件改成universal-darwin19,如圖:
再執(zhí)行sudo gem install cocoapods
原文鏈接?
http://www.reibang.com/p/f00be46d77ef