Ios 吊舱规格皮棉失效

Ios 吊舱规格皮棉失效,ios,swift,cocoapods,Ios,Swift,Cocoapods,我制作了一个Swift框架,我想为它制作一个Cocoapod。 我遵循了所有的说明: 创建了podspec文件,添加了版本标签,并将其推送到github 当我运行pod lib lint时,它通过,但当我运行pod spec lint时,它失败 这是我的podspec文件 Pod::Spec.new do |s| s.name = "Seru" s.version = "0.0.3" s.summary = "Seru is Simple C

我制作了一个Swift框架,我想为它制作一个Cocoapod。
我遵循了所有的说明:

  • 创建了podspec文件,添加了版本标签,并将其推送到github 当我运行
    pod lib lint
    时,它通过,但当我运行pod spec lint时,它失败
这是我的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::Spec.new do|s|
s、 name=“Seru”
s、 version=“0.0.3”
s、 summary=“Seru是简单的核心数据堆栈”
s、 description=“LICENSE”}
s、 作者={“Kostiantyn Koval”=>“konstantin。koval1@gmail.com" }
s、 社交媒体url=”http://twitter.com/kostiakoval"
s、 平台=:ios,“8.0”
s、 source={:git=>”https://github.com/kostiakoval/Seru.git“,:tag=>s.version}
s、 source_files=“Seru/source”,“Seru/source/***.{swift}”
s、 需要_弧=真
s、 ios.vendored_frameworks='Carthage/Build/ios/Sweet.framework'
结束
它具有外部框架依赖性。我猜这是个问题。
当我做pod speck lint时,它说我找不到外部框架

问题是cocoapod不包括
供应商的框架
文件夹。
要解决此问题,请使用指定将此文件夹包含到CocoaPod中

s.preserve\u路径='Carthage/Build/iOS/Sweet.framework'