Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pod spec lint: Attempt to read non existent folder

Trying to lint a local pod spec

$ pod spec lint MyPod.podspec

I'm getting

[!] Attempt to read non existent folder /private/tmp/CocoaPods/Lint/Pods/MyPod.

I checked /private/tmp/CocoaPods/Lint/Pods/ where I didn't find my podspec indeed,
but I found it in /private/tmp/CocoaPods/Lint/Pods/Local Podspecs/

What can cause this and/or how can I debug ?


For info here is my pod spec

Pod::Spec.new do |s|
    s.name         = "MyPod"
    s.version      = "0.0.1"
    s.summary      = "A pretty cool pod"
    s.author       = { "Me" => "[email protected]" }
    s.license      = 'MIT'
    s.homepage     = "http://www.mypod.net"
    s.source       = { :path => "." }
    s.source_files = '*.{h,m}'
    s.platform     = :ios, '6.0'
    s.requires_arc = true
end

:path seems to cause the trouble, :git works

like image 804
Pierre de LESPINAY Avatar asked May 30 '14 09:05

Pierre de LESPINAY


2 Answers

In my case it was caused by commented s.source line as I was testing it before with local podspec and sources. When you'll commit your podspec to the repo make sure to run pod repo update

like image 185
Maciek Czarnik Avatar answered Nov 03 '22 06:11

Maciek Czarnik


This can also happen if you have not yet pushed your podspec's targeted tags to your origin/repo. I assume the same might also be true if you are targeting a non-existent git, branch, etc.

like image 36
toblerpwn Avatar answered Nov 03 '22 06:11

toblerpwn