Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `split' for nil:NilClass #327

Closed
hartbit opened this issue Jun 12, 2012 · 20 comments
Closed

undefined method `split' for nil:NilClass #327

hartbit opened this issue Jun 12, 2012 · 20 comments
Labels
t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!

Comments

@hartbit
Copy link

hartbit commented Jun 12, 2012

Report

I tried to change the git repository of a dependency of a Pod-defined spec dependency, and it dies on me.

Stack

   CocoaPods : 0.6.0.rc2
        Ruby : ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.7.4 (11E53)
       Xcode : 4.5 (4G78z)
Ruby lib dir : /Users/david/.rvm/rubies/ruby-1.9.3-p194/lib
Repositories : master - git://github.com/CocoaPods/Specs.git @ 97f6bcde3d90e5eb3c5e6b76323b2ec75303929c

Podfile

platform :ios, '5.0'

target :test do
    link_with 'FujiTests'
    dependency 'Specta'
    dependency 'Expecta', :git => 'https://github.com/TrahDivad/expecta.git'
    dependency do |spec|
        spec.name           = 'OCMockito'
        spec.version        = '0.22'
        spec.source         = { :git => 'https://github.com/TrahDivad/OCMockito.git' }
        spec.source_files   = 'Source/OCMockito/*.{h,m}'

        spec.dependency 'OCHamcrest', :git => 'https://github.com/TrahDivad/OCHamcrest.git'
    end
end

Error

undefined method `exists?' for nil:NilClass
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/dependency.rb:140:in `specification_from_sandbox'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:44:in `find_cached_set'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:60:in `block in find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:69:in `block in find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:25:in `block in resolve'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:22:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:22:in `resolve'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:172:in `specs_by_target'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:81:in `install!'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command/install.rb:53:in `run'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command.rb:69:in `run'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/bin/pod:12:in `<top (required)>'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `load'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `<main>'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
@hartbit
Copy link
Author

hartbit commented Jun 12, 2012

I thought the problem could be coming from the fact that OCHamcrest does not have a podspec file in it's repo. So I defined it in the Podfile, but I get a new error:

Podfile

platform :ios, '5.0'

target :test do
    link_with 'FujiTests'
    dependency 'Specta'
    dependency 'Expecta', :git => 'https://github.com/TrahDivad/expecta.git'
    dependency do |mockito|
        mockito.name            = 'OCMockito'
        mockito.version         = '0.22'
        mockito.source          = { :git => 'https://github.com/TrahDivad/OCMockito.git' }
        mockito.source_files    = 'Source/OCMockito/*.{h,m}'

        mockito.dependency 'OCHamcrest' do |hamcrest|
            hamcrest.name           = 'OCHamcrest'
            hamcrest.version        = '1.8'
            hamcrest.source         = { :git => 'https://github.com/TrahDivad/OCHamcrest.git' }
            hamcrest.source_files   = 'Source/OCHamcrest.h', 'Source/Core/**/*.{h,m,mm}', 'Source/Library/**/*.{h,m,mm}'
            hamcrest.clean_paths    = "Examples", "Documentation", "Source/Tests", "Source/TestSupport"
        end
    end
end

Error

No such file or directory - /Users/david/Library/Caches/CocoaPods/Git/85dd367238192edca8b33ab56114504e4ddbfc61
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/downloader/git.rb:81:in `chdir'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/downloader/git.rb:81:in `ref_exists?'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/downloader/git.rb:86:in `ensure_ref_exists'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/downloader/git.rb:98:in `download_tag'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/downloader/git.rb:123:in `download_tag'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/downloader/git.rb:18:in `download'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:57:in `block in install_dependencies!'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:48:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:48:in `install_dependencies!'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:84:in `install!'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command/install.rb:53:in `run'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command.rb:69:in `run'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/bin/pod:12:in `<top (required)>'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `load'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `<main>'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

@yas375
Copy link
Contributor

yas375 commented Jun 12, 2012

The problem was in old OCHamcrest source url in spec repo. It was updated in master branch, but not in 0.6 branch which is used by cocoapods 0.6.0-rc2.

I've merged master branch of specs into 0.6 branch. And now all pods in your Podfile could be install. Please check.
If it solves your problem please close this issue.

@hartbit
Copy link
Author

hartbit commented Jun 13, 2012

Perfect!

@hartbit hartbit closed this as completed Jun 13, 2012
@hartbit
Copy link
Author

hartbit commented Jun 13, 2012

Ok, this was a false positive, the problem is still happening, but it seems the error has changed.
Mind you, this problem should not be related to the Specs repo as I'm using a custom OCHamcrest fork.

Podfile

platform :ios, '5.0'

target :test do
    link_with 'FujiTests'
    dependency 'Specta'
    dependency 'Expecta', :git => 'https://github.com/TrahDivad/expecta.git'
    dependency do |mockito|
        mockito.name            = 'OCMockito'
        mockito.version         = '0.22'
        mockito.source          = { :git => 'https://github.com/TrahDivad/OCMockito.git' }
        mockito.source_files    = 'Source/OCMockito/*.{h,m}'

        mockito.dependency do |hamcrest|
            hamcrest.name           = 'OCHamcrest'
            hamcrest.version        = '1.8'
            hamcrest.source         = { :git => 'https://github.com/TrahDivad/OCHamcrest.git' }
            hamcrest.source_files   = 'Source/OCHamcrest.h', 'Source/Core/**/*.{h,m,mm}', 'Source/Library/**/*.{h,m,mm}'
            hamcrest.clean_paths    = 'Examples', 'Documentation', 'Source/Tests', 'Source/TestSupport'
        end
    end
end

Error

undefined method `split' for nil:NilClass
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:36:in `find_cached_set'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:60:in `block in find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:69:in `block in find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `find_dependency_specs'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:25:in `block in resolve'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:22:in `each'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:22:in `resolve'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:172:in `specs_by_target'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:81:in `install!'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command/install.rb:53:in `run'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command.rb:69:in `run'
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.6.0.rc2/bin/pod:12:in `<top (required)>'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `load'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `<main>'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/Users/david/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

@hartbit hartbit reopened this Jun 13, 2012
@yas375
Copy link
Contributor

yas375 commented Jun 13, 2012

when I've played with your problem yesterday I've also meet this problem when I removed pod name from dependency:
try to replace:

mockito.dependency do |hamcrest|

with:

mockito.dependency 'OCHamcrest' do |hamcrest|

hope it will solve your problem. btw, i had fully completed pod installation with your Podfile yesterday)

@hartbit
Copy link
Author

hartbit commented Jun 13, 2012

This does not solve my problem because the 'OCHamcrest' you added makes it fetch it from the Specs repo, ignoring my own fork.

@yas375
Copy link
Contributor

yas375 commented Jun 14, 2012

well, I don't really know how dependency mehod works when name and block provided. You could also solve your problem by creating podspec files and host it somewhere (I prefer gist.github.com).

For this you could copy current spec from CocoaPods/Specs repo, edit it as you need. Put in into gist. And in your Podfile simply use:

dependency 'CocoaLumberjack', :podspec => 'https://raw.github.com/gist/2779752/87ca2283f61651a27c72db86ee876329e91bc306/0.5.1'

Or maybe someone else will help you with another advice)

@fabiopelosin
Copy link
Member

As far as I'm concerned, declaring a dependency with podfile syntax in a podspec is not supported.

I think that you can solve your problem in the podfile doing somthing like:

target :test do
       ....
       dependency do |hamcrest|
            hamcrest.name           = 'OCHamcrest'
            hamcrest.version        = '1.8'
            hamcrest.source         = { :git => 'https://github.com/TrahDivad/OCHamcrest.git' }
            hamcrest.source_files   = 'Source/OCHamcrest.h', 'Source/Core/**/*.{h,m,mm}', 'Source/Library/**/*.{h,m,mm}'
            hamcrest.clean_paths    = 'Examples', 'Documentation', 'Source/Tests', 'Source/TestSupport'
        end
    dependency do |mockito|
        ...
        mockito.dependency = 'OCHamcrest'
    end
end

@amrox
Copy link

amrox commented Jun 19, 2012

I'm having this same problem, though this is my first go at cocoapods, so it could be user error. I am trying to convert a couple small projects over to cocoapods before trying it out in bigger ones, but keep encountering problems.

Stack

   CocoaPods : 0.6.0.rc2
        Ruby : ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
    RubyGems : 1.8.23
        Host : Mac OS X 10.7.4 (11E53)
       Xcode : 4.3.3 (4E3002)
Ruby lib dir : /usr/local/Cellar/ruby/1.9.3-p194/lib
Repositories : master - git://github.com/alloy/cocoapods-specs.git @ 39e348b0bfd268fe0a8606e71a07a0f9071cf7eb

Podfile

platform :ios
workspace 'AMSpringboardDemo.xcworkspace'
xcodeproj 'AMSpringboardDemo/AMSpringboardDemo.xcodeproj'
dependency 'AMFoundation', :git => 'https://github.com/amrox/AMFoundation.git', :commit => '61fd3da0a823b7d8b531447d2776ddd0646a81ea'
dependency 'AMSpringboard', :git => 'https://github.com/amrox/AMSpringboard.git', :commit => '343ece5f29b6601dc9660b4f57017bc0089da425'

AMFoundation.podspec

Pod::Spec.new do |s|
  s.name         = "AMFoundation"
  s.version      = "0.1.0"
  s.summary      = "A couple little utilities with an important-sounding name."
  # s.description  = 'An optional longer description of AMFoundation.'
  s.homepage     = "https://github.com/amrox/AMFoundation"
  s.license      = { :type => 'MIT', :file => 'LICENSE' }
  s.author       = { "Andy Mroczkowski" => "andy@mrox.net" }
  s.source       = { :git => "https://github.com/amrox/AMFoundation.git", :commit => 'a87117ff96' }
  s.ios.deployment_target = '4.0'
  s.osx.deployment_target = '10.6'
  s.source_files = 'AMFoundation'
  s.frameworks = 'Foundation', 'Quartz'

  # If you need to specify any other build settings, add them to the
  # xcconfig hash.
  #
  # s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }

end

AMSpringboard.podspec

Pod::Spec.new do |s|
  s.name     = 'AMSpringboard'
  s.version  = '0.1.5'
  s.summary  = 'A simple Springboard view, following the Data Source / Delegate pattern.'
  s.homepage = 'https://github.com/amrox/AMSpringboard'
  s.author   = { 'Andy Mroczkowski' => 'andy@mrox.net' }
  s.source   = { :git => 'https://github.com/amrox/AMSpringboard.git', :commit => '25fb44161198ee79d62771912c65890648292a88' }
  s.license  = { :type => 'MIT', :file => 'LICENSE' }
  s.platform = :ios, '4.0'
  #s.description = 'An optional longer description of AMSpringBoard.'
  s.source_files = 'AMSpringboard'
  s.frameworks = 'Foundation', 'UIKit'

  #s.xcconfig = { 'OTHER_LDFLAGS' => '-framework SomeRequiredFramework' }

  s.dependency 'AMFoundation', :git => 'https://github.com/amrox/AMFoundation.git', :commit => '61fd3da0a823b7d8b531447d2776ddd0646a81ea'
end

Error

undefined method `split' for nil:NilClass
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/specification.rb:314:in `subspec_by_name'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/specification/set.rb:28:in `specification_by_name'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:64:in `block in find_dependency_specs'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `each'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:58:in `find_dependency_specs'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:25:in `block in resolve'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:22:in `each'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/resolver.rb:22:in `resolve'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:172:in `specs_by_target'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/installer.rb:81:in `install!'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command/install.rb:53:in `run'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/lib/cocoapods/command.rb:69:in `run'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.6.0.rc2/bin/pod:12:in `<top (required)>'
/usr/local/Cellar/ruby/1.9.3-p194/bin/pod:23:in `load'
/usr/local/Cellar/ruby/1.9.3-p194/bin/pod:23:in `<main>'

@fabiopelosin
Copy link
Member

Try converting

s.dependency 'AMFoundation', :git => 'https://github.com/amrox/AMFoundation.git', :commit => '61fd3da0a823b7d8b531447d2776ddd0646a81ea'

to

s.dependency 'AMFoundation'

For this to work it is important that AMFoundation is loaded before AMSpringboard in your podfile.

Is there a reason why you haven't submitted the your libraries to the specs repo?

@fabiopelosin
Copy link
Member

To be clear, the syntax that you used is only supported in the podfile and not inside a specification.

@hartbit
Copy link
Author

hartbit commented Jun 19, 2012

As far as I'm concerned, declaring a dependency with podfile syntax in a podspec is not supported.

What if I want to declare a dependency in my podspec file that points to a custom git repo?

@fabiopelosin
Copy link
Member

What if I want to declare a dependency in my podspec file that points to a custom git repo?

In that case I would just suggest to create another repo in ~/.cocoapods. It doesn't necessarily needs to be under git, although cocoapods will try to update it. Podspecs are only concerned about the dependencies names and version requirements, how to load the dependencies is not their responsibility (otherwise things could get messy pretty quickly).

@amrox
Copy link

amrox commented Jun 19, 2012

Is there a reason why you haven't submitted the your libraries to the specs repo?

Yes, several. I wanted to get them working privately before pushing them publicly, because I don't really know what I'm doing yet.

Also, I hope to use cocoapods with some large, closed-sourced projects. The ability to pull directly from a private repo instead of a public index is important to me.

@fabiopelosin
Copy link
Member

Also, I hope to use cocoapods with some large, closed-sourced projects. The ability to pull directly from a private repo instead of a public index is important to me.

I just asked because the libraries where in a public repo. Anyway, the best solution with for custom specs depending on other custom specs is to create the repo (either private or public). It is very easy to do and easier to maintain.

@amrox
Copy link

amrox commented Jun 19, 2012

To be clear, the syntax that you used is only supported in the podfile and not inside a specification.

Thank you for clarifying. I thought I saw it done that way in docs, but looking back I can't find it. I must have confused it with the Podfile dependency options.

However, pod spec lint did not complain that this syntax was invalid.

@amrox
Copy link

amrox commented Jun 19, 2012

Also, I hope to use cocoapods with some large, closed-sourced projects. The ability to pull directly from a private repo instead of a public index is important to me.

I just asked because the libraries where in a public repo. Anyway, the best solution with for custom specs depending on other custom specs is to create the repo (either private or public). It is very easy to do and easier to maintain.

Yes good advice. I'll try forking the Specs repo and adding my specs there, and report back.

@fabiopelosin
Copy link
Member

Yes good advice. I'll try forking the Specs repo and adding my specs there, and report back.

No need to fork the specs repo. You can simply add a folder in ~/.cocoapods like ~/.cocoapods/repo and cocoapods will look inside it. Just preserver the file structure of the Specs repo ie:

~/.cocoapods/private/myKit/1.0/myKit.podspec

Note that currently cocoapods does not handle completely adding a pod with the same name to two repos.

@fabiopelosin
Copy link
Member

Can we close the issue?

@fabiopelosin
Copy link
Member

Closing as apparently resolved. Please reopen if needed.

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Projects
None yet
Development

No branches or pull requests

4 participants