Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Can not submit a pod #1581

Closed
sag333ar opened this Issue Nov 12, 2013 · 5 comments

Comments

Projects
None yet
3 participants

Here is my specification file.

Pod::Spec.new do |s|
s.name = "STTwitterTimeLine"
s.version = "1"
s.summary = "To Fetch recent tweets of specified twitter-handle on iOS7/iOS6/iOS5"
s.homepage = "http://sugartin.info"
s.license = 'MIT'
s.author = { "Sagar R. Kothari" => "sag333ar@gmail.com" }
s.source = { :git => "http://github.com/sag333ar/STTwitterTimeLine/.git", :tag => "v1" }
s.platform = :ios, '5.0'
s.ios.deployment_target = '5.0'
s.source_files = 'Classes', '*.{h,m}'
s.ios.frameworks = 'Accounts', 'Social', 'Twitter'

end

Here is the error I get

pod spec lint

-> STTwitterTimeLine
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Report

  • What did you do?
  • What did you expect to happen?
  • What happened instead?

Stack

   CocoaPods : 0.27.1
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
    RubyGems : 2.1.10
        Host : Mac OS X 10.9 (13A603)
       Xcode : 5.0.1 (5A2053)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ a1d50df18b4c84ddd7cabfdaa5ccd46f0011cc49

Error

Errno::EACCES - Permission denied - /tmp/CocoaPods/Lint/Pods/Local Podspecs/STTwitterTimeLineDemo.podspec
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1432:in `unlink'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1432:in `block in remove_file'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1437:in `platform_support'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1431:in `remove_file'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1420:in `remove'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:770:in `block in remove_entry'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1470:in `block (2 levels) in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1470:in `block (2 levels) in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1470:in `block (2 levels) in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1474:in `postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `block in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1468:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1468:in `postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `block in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1468:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1468:in `postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1469:in `block in postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1468:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1468:in `postorder_traverse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:768:in `remove_entry'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:626:in `block in rm_r'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:622:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:622:in `rm_r'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:567:in `rmtree'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/validator.rb:187:in `setup_validation_environment'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/validator.rb:176:in `block in perform_extensive_analysis'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/validator.rb:173:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/validator.rb:173:in `perform_extensive_analysis'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/validator.rb:63:in `validate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/spec.rb:83:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/spec.rb:78:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/spec.rb:78:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.3.2/lib/claide/command.rb:206:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command.rb:51:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/bin/pod:19:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing github issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+-+%2Ftmp%2FCocoaPods%2FLint%2FPods%2FLocal+Podspecs%2FSTTwitterTimeLineDemo.podspec&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Don't forget to anonymize any private data!

Owner

alloy commented Nov 12, 2013

It looks like you might have run this with sudo before, could that be the case?

Errno::EACCES - Permission denied - /tmp/CocoaPods/Lint/Pods/Local Podspecs/STTwitterTimeLineDemo.podspec

If so, try sudo rm -r /tmp/CocoaPods and then run pod spec lint again without using sudo.

I tried executing following command
sudo rm -r /tmp/CocoaPods
then I executed following command after correction from http to https
pod spec lint without using sudo


And now I get errors as follows.

 [!] Pod::Executable fetch origin tags/v1 2>&1
 fatal: Couldn't find remote ref tags/v1
 fatal: The remote end hung up unexpectedly

I've captured the video for it & uploaded here.
http://youtu.be/BeiKIrM2pNk

Member

Kapin commented Nov 13, 2013

That error looks like you do not have the correct tag pushed to your git repo (http://git-scm.com/book/en/Git-Basics-Tagging). I advise using a numbered tag and decimal version number (i.e. 1.0, 1.1, 1.1.1, etc.) to make it easier to update your pod.

Additionally you have an extra / before the .git in the url

Member

Kapin commented Nov 13, 2013

Also closing because this is a spec defining issue rather than an issue with CocoaPods.

@Kapin Kapin closed this Nov 13, 2013

Owner

alloy commented Nov 13, 2013

@sag333ar Also see the pod lib lint command which is tailored to these kinds of situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment