当前位置: 代码迷 >> 综合 >> cocoapods pod install报错ERROR: Error installing cocoapods: ERROR: Failed to build gem native extensi
  详细解决方案

cocoapods pod install报错ERROR: Error installing cocoapods: ERROR: Failed to build gem native extensi

热度:60   发布时间:2023-12-22 17:39:30.0

pod update

或者

pod install

时报错

//--报错信息--Unable to add a source with url `https://github.com/CocoaPods/Specs.git` namERROR: Error installing cocoapods: ERROR: Failed to build gem native extensi//-----------

可能是因为你的Podfile 文件中添加了如下

source 'https://github.com/CocoaPods/Specs.git'

改为

# source 'https://github.com/CocoaPods/Specs.git'

删掉或者注释都可以

  相关解决方案