一个podspec不完整导致pod update的错误解决

因为需要引用一个库的源码,所以Podfile修改为本地路径的源码形式依赖。

  pod 'PhotoKit', :path=>'/Users/xxx/Work/PhotoKit'

然后执行:

  pod update

结果得到下面的错误:

update repo
Updating local specs repositories
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Analyzing dependencies
Fetching podspec for PhotoKit from /Users/xxx/Work/PhotoKit
[!] The PhotoKit pod failed to validate due to 2 errors.
[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a .swift-version file to set the version for your Pod. For example to use Swift 2.3, run:
echo "2.3" > .swift-version:
- ERROR | attributes: Missing required attribute homepage.
- ERROR | attributes: Missing required attribute summary.

关于swift的提s.summary = ""
s.homepage = ""示搞得很晕。但是错误也比较明显。
打开PhotoKit里面的podspec

  s.summary      = ""
  s.homepage     = ""

补充完整的homepage和summary

  s.summary      = "PhotoKit"
  s.homepage     = "http://xxx/xxxx"

重新pod update,问题解决。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa阅读 9,101评论 0 6
  • 许多事情,刚开始觉得新鲜,以为只要自己坚持下去,便好了,但是自己却忘记了,能否坚持到最后才是最关键的,渐渐的,自己...
    希雅的花园阅读 215评论 0 0
  • 资产是指所有权在企业方的,能以货币计量并为企业提供经济效益的经济资源,并包括债权和其他权利。 举几个例子。...
    小新家的发糕铺阅读 525评论 0 0
  • 记忆里你来的时候是一阵风 是轻触我心灵的歌谣 我看到了一棵树 在春天的烈火里焚烧 于是我闭上眼睛 依稀中是窗前的你...
    南瓜多好阅读 332评论 0 1

友情链接更多精彩内容