我制作了一个框架,我想通过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)