pod 规范 lint 失败

pod spec lint fails

我做了一个Swift框架我想为它做一个CocoaPods。
我已按照所有说明进行操作:

这是我的 podspec 文件

Pod::Spec.new do |s|

  s.name         = "Seru"
  s.version      = "0.0.3"
  s.summary      = "Seru is Simple Core Data stack"
  s.description  = <<-DESC
                   Seru is Swift framework for working wit Core Data. It setup your core data stack and 
                   gives you nica actions to work with it
                   DESC

  s.homepage     = "https://github.com/kostiakoval/Seru"
  s.license      = { :type => "MIT", :file => "LICENSE" }
  s.author             = { "Kostiantyn Koval" => "konstantin.koval1@gmail.com" }
  s.social_media_url   = "http://twitter.com/kostiakoval"

  s.platform     = :ios, "8.0"
  s.source       = { :git => "https://github.com/kostiakoval/Seru.git", :tag => s.version }

  s.source_files  = "Seru/Source", "Seru/Source/**/*.{swift}"
  s.requires_arc = true
  s.ios.vendored_frameworks = 'Carthage/Build/iOS/Sweet.framework'

end

它具有外部框架依赖性。我猜这是个问题。 当我执行 pod speck lint 时,它说我找不到那个外部框架

问题是 CocoaPods 不包含 vendored_frameworks 文件夹。
要修复它,请使用 preserve_paths.

指定该文件夹应包含在 CocoaPod 中

s.preserve_paths = 'Carthage/Build/iOS/Sweet.framework'