小编wes*_*shi的帖子

当pod lib lint成功时,pod spec lint失败.'vendored_frameworks'模式与任何文件都不匹配

我制作了一个框架,我想通过CocoaPods分发.

我不确定我是不是做了些蠢事.我在基本目录中包含了一个完整的.framework文件夹,我希望它能成为我的pod的源代码.当我运行"pod lib lint"时,一切似乎都很好但是当我运行"pod spec lint"时,我得到:

- ERROR | [iOS] The `vendored_frameworks` pattern did not match any file.
Run Code Online (Sandbox Code Playgroud)

我在查看stackoverflow之后尝试添加preserve_paths,但这似乎无法解决我的问题.通过阅读cocoapods文档,vendored_frameworks是"随Pod一起提供的框架包的路径",所以我认为在这里使用它似乎很好.

这是我的podspec文件:

Pod::Spec.new do |s|
  s.name             = "X"
  s.version          = "1.0"
  s.summary          = "Summary"
  s.description      = "Description here"
  s.homepage         = "http://www.valid_homepage.com/"
  s.license          = { :type => "Commercial", :text => "See https://www.license_here" }
  s.author           = { "Author" => "author@website.com" }
  s.source           = { :http => "https://storage.googleapis.com/path/to/file" }
  s.social_media_url = 'https://twitter.com/handle'
  s.platform     = :ios, '7.0'
  s.requires_arc = true
  s.preserve_paths = 'X.framework'
  s.vendored_frameworks = 'X.framework' …
Run Code Online (Sandbox Code Playgroud)

ios ios-frameworks cocoapods podspec

8
推荐指数
1
解决办法
2820
查看次数

标签 统计

cocoapods ×1

ios ×1

ios-frameworks ×1

podspec ×1