2014-12-07 49 views
2

我一直在關注this guide以獲得CocoaPods上的項目。我目前在測試段和正在錯誤:找不到podspec for ...在<file> .podspec.json

[!] No podspec found for `AppUpdateTracker` in /Users/aaron/Downloads/AUTCocoaPodsTest/AUTPodTest/Pods/AppUpdateTracker/AppUpdateTracker.podspec.json 

掉毛againt我的回購工作正常:

pod spec lint App-Update-Tracker.podspec 

-> App-Update-Tracker (1.0.0) 

Analyzed 1 podspec. 

App-Update-Tracker.podspec passed validation. 

這是我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 

任何如何解決這個問題的想法?

+0

您的Podfile的外觀如何?它是否正確引用您的本地Podspec? – barksten 2014-12-07 19:37:37

回答

4

看起來您的Pod名稱不匹配: pod的名稱是App-Update-Tracker,但它的引用名稱爲AppUpdateTracker。

+0

原來,當我需要使用App-Update-Tracker時,我在我的Podfile中使用了'AppUpdateTracker'。 – Stunner 2014-12-08 00:01:57

+0

我得到同樣的問題,我的pod名稱是正確的,仍然有這個問題,任何想法,爲什麼發生這種情況?我的pod規格文件位於不同的文件夾中,我的測試項目位於不同的文件夾中。這是否會導致問題? – 2015-02-12 06:39:18

+0

我認爲我有同樣的問題,你@PoojaShah你找到原因? – 2015-09-28 11:58:27