Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No podspec found for ... in <file>.podspec.json

I have been following this guide to get a project on mine on CocoaPods. I am currently on the Testing section and am getting the error:

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

Linting againt my repo works fine:

pod spec lint App-Update-Tracker.podspec

 -> App-Update-Tracker (1.0.0)

Analyzed 1 podspec.

App-Update-Tracker.podspec passed validation.

And this is my 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

Any idea on how to get around this issue?

like image 584
Stunner Avatar asked Dec 07 '14 15:12

Stunner


People also ask

What is Podspec file?

A Podspec, or Spec, describes a version of a Pod library. One Pod, over the course of time, will have many Specs. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description.

What is the difference between a Podspec and Podfile?

You could say Podfile is your project configuration, and Podspec is your library configuration.


1 Answers

It looks like your Pod names doesn't match: The name of the pod is App-Update-Tracker but it's references as AppUpdateTracker.

like image 139
barksten Avatar answered Nov 15 '22 00:11

barksten