使用GoogleAnalytics(cocoapod)创建Cocoapod,无法通过验证

时间:2016-01-20 22:10:10

标签: ios swift validation google-analytics cocoapods

目标:使用' Google / Analytics'创建一个cocoapod (SWIFT)
问题:执行后无法通过验证:pod repo push MyCocoapods MyCocoapods.podspec

MyCocoapods.podspec:

Pod::Spec.new do |s|
  s.name         = "MyCocoapods"
  s.version      = "0.1.1"
  s.summary      = "MyCocoapods, checker"
  s.description  = "Think: What does it do? Why did you write it? What is the focus?"
  s.homepage     = "http://www.jeuxvideo.com"
  s.license      = { :type => "MIT", :file => "LICENSE" }
  s.author             = { "John Dow" => "john.doe@gmail.com" }
  s.platform     = :ios
  s.ios.deployment_target = "8.0"
  s.source       = { :git => "git@bitbucket.org:dokidocu/mycocoapods.git", :tag => "#{s.version}" }
  s.source_files  = "MyCocoapods/**/*.{swift}"
  s.framework  = "Foundation"
  s.requires_arc = true
  s.dependency 'SwiftyJSON', '~> 2.3'
  s.dependency 'Google/Analytics'

end

执行时:pod repo push MyCocoapods MyCocoapods.podspec --verbose

我收到此错误:

  
      
  • 错误| [iOS] unknown:遇到未知错误(' Pods'目标具有包含静态二进制文件的传递依赖项:   (/private/var/folders/_s/8bj_jrf143nd21dmhqxz16m40000gn/T/CocoaPods/Lint/Pods/Google/Libraries/libGGLAnalytics.a   和   /private/var/folders/_s/8bj_jrf143nd21dmhqxz16m40000gn/T/CocoaPods/Lint/Pods/Google/Libraries/libGGLCore.a))   在验证期间。
  •   

有关如何使其有效的任何想法?

(如果我从依赖项和Podfile中删除了Google / Analytics'则可以验证pod ...但这不是我想要的"

0 个答案:

没有答案