美文网首页
发布pods共用库 提示 source_files patter

发布pods共用库 提示 source_files patter

作者: theonelgq | 来源:发表于2020-07-15 10:57 被阅读0次

    解决方案

    1.首先pod spec lint podName.podspec --allow-warnings 看看能否验证成功

    2.如果验证码成功还是提示source_files pattern did not match any file 就说明对应的source_files下没有找到对应的文件

    3.到/Users/用户/Library/Caches/CocoaPods/Pods/External/.podspec文件名/035cb9aa62b9d49f904fad1119b83da4-aebfe 目录下,自行创建对应的文件夹和内容。

    4.pod repo push xxxPod  xxxpodspec --verbose --use-libraries --allow-warnings  重试即可

    还有一种情况情况你的podspec引用了一个没有提交的source_files

    1.检查你的更新podspec 下的s.source 

    2.尝试更改为 spec.source = { :git => "https://github.com/theonelgq/LGQ_A_Category.git", :tag => "#{spec.version}" }

    注意 如果生成库成功后 pod search 不到自己的库

    执行pod setup

    终端输入:pod setup

    会出现Setting up CocoaPods master repo,稍等几十秒,最底下会输出Setup completed。说明执行pod setup成功。

    如果pod search操作还是搜索失败,如下:

    终端输入:pod search [podname]

    输出:Unable to find a pod with name, author, summary, or descriptionmatching [podname] 这时就需要继续下面的步骤了。

    删除~/Library/Caches/CocoaPods目录下的search_index.json文件

    pod setup成功后,依然不能pod search,是因为之前你执行pod search生成了search_index.json,此时需要删掉。再搜索一下就可以了。

    相关文章

      网友评论

          本文标题:发布pods共用库 提示 source_files patter

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