安装cocoapods报错:Failed to build gem native extension.

(1)sudo rm -rf /Library/Developer/CommandLineTools

(2)xcode-select --install

(3)sudo xcodebuild -license accept

(4)open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

你可能感兴趣的:(安装cocoapods报错:Failed to build gem native extension.)