美文网首页
pod setup后出错 Failed to extract

pod setup后出错 Failed to extract

作者: OCeasyLife | 来源:发表于2018-06-01 15:10 被阅读0次

    若在pod setup 后出现Failed to extract git version from `git --version`。。。。。。

    如图所示

    其实图中已经给出了解决方案

    解决方案:please run “sudo xcodebuild -license” and then retry this command

    1.输入命令sudo xcodebuild -license,回车

    会出现一大堆文字,大意是各种license,不要在意

    2.按q退出,出现以下文字

    3.输入agree回车

    4.重新pod setup就好了

    我推测是因为你在新mac上安装的Xcode并没有打开过,这时你又安装CocoaPods。没有打开Xcode就没有同意license,这时就出现了这个问题。

    当然,同时有多个Xcode,CocoaPods的依赖是默认最新的,如果最新的Xcode没有同意license也会出现这个问题

    相关文章

      网友评论

          本文标题:pod setup后出错 Failed to extract

          本文链接:https://www.haomeiwen.com/subject/tjcksftx.html