美文网首页
Unable to find a specification f

Unable to find a specification f

作者: 凤舞玖天 | 来源:发表于2022-07-21 15:35 被阅读0次

    问题详述

    使用 CocoaPods 无法集成服务,且错误信息为:Unable to find a specification for xxx

    CocoaPods 使用不当。

    清除 CocoaPods 缓存,同时也清除仓库缓存,确保 CocoaPods 为最新版。并已经更新过 Repo。

    因为「用户反馈」iOS SDK 使用的是私有仓库,清理缓存的方式可能稍有不同:

    清理私有 CocoaPods 仓库缓存的方法:

    pod repo remove aliyun

    或者

    cd /Users/[YourMacName]/.cocoapods/repos/

    在该目录下找到对应的名为 aliyun 的私有仓库,删除该私有仓库。

    再执行:

    pod repo update

    重新执行

    pod search [PodName]

    确保能搜到,然后再执行:

    pod install

    如果还报相同的错误,那么请执行,这样会打印更详细的错误:

    pod install --verbose

    相关文章

      网友评论

          本文标题:Unable to find a specification f

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