在<file> .podspec.json中没有为...找到podspec

Stu*_*ner 4 xcode ios cocoapods

我一直在按照本指南在CocoaPods上获取我的项目.我目前正在测试部分,并收到错误:

[!] No podspec found for `AppUpdateTracker` in /Users/aaron/Downloads/AUTCocoaPodsTest/AUTPodTest/Pods/AppUpdateTracker/AppUpdateTracker.podspec.json
Run Code Online (Sandbox Code Playgroud)

Linting againt我的回购工作正常:

pod spec lint App-Update-Tracker.podspec

 -> App-Update-Tracker (1.0.0)

Analyzed 1 podspec.

App-Update-Tracker.podspec passed validation.
Run Code Online (Sandbox Code Playgroud)

这是我的Podspec:

Pod::Spec.new do |s|

  s.name         = "App-Update-Tracker"
  s.version      = "1.0.0"
  s.summary      = "AppUpdateTracker is a simple, lightweight iOS library intended to determine basic app install/update behavior."

  s.description  =  <<-DESC
                   This library allows you to easily determine when the user uses your app after a fresh install, when the user updates your app (and the version from which (s)he updated, and how many times the user has opened a given version of your app. This library was created in order to help determine update information so that appropriate data migration logic could be run after an app update.
                   DESC

  s.homepage     = "https://github.com/Stunner/App-Update-Tracker"
  s.license      = { :type => "MIT", :file => "LICENSE.txt" }
  s.author             = { "Stunner" => "" }
  s.social_media_url   = "http://twitter.com/ajubbal"
  s.platform     = :ios
  s.source       = { :git => "https://github.com/Stunner/App-Update-Tracker.git", :tag => "1.0.0" }

  s.source_files  = "AppUpdateTracker"
  s.requires_arc = true

end
Run Code Online (Sandbox Code Playgroud)

有关如何解决这个问题的任何想法?

小智 6

看起来你的Pod名称不匹配:pod的名称是App-Update-Tracker,但它的引用是AppUpdateTracker.