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
Invalid <pod_name>.podspec
file: undefined method `author=' for #<Pod::Specification name="<pod_name>">
#816
Comments
I reinstalled everything over and recloned the specs repo, now it works |
I reinstalled everything over and recloned the specs repo, now it works |
I was just writing a reply... strange issue. |
+1, have the same issue. |
We had another report similar to this issue and a reinstallation of CocoaPods fixed the issue. I guess that for some reason the cocoapods-core gem might not be correctly loaded. I also assume that this issue is somehow related to the pre-release installation process of RubyGems. Therefore I'm closing it with the suggestion to re-install cocoapods to those who encounter it. If more information is found please share it. |
Just FYI, I ran into this issue just now after having installed the 0.17.rc6 version. I had about 6 versions of Cocoapods installed however and I suppose it is possible that they may have confligrated with one another in the bowels of my directory tree. I just removed all versions, installed the 0.17.rc6 pre release version and have the same error. I also did a
which picked up a few updates on the master spec repo but nothing related to the BlocksKit spec. I can fix this by adding a simple "s" to the end of s.author and that would fix it, but I'm afraid that there are quite a few more specs in the master repo with this version!
Final note on recloning - the files in my repo are up-to-date as of the latest push tonight. commit 86271c6 and the files here in master on github match what I've got in the files in my repo, so that won't help either. Is this something that is an example of an attribute that has been deprecated in favor of a single authors method and there are repos yet to be fixed? |
Can you do the same process for the
Please don't, the plural variants of the DSL directives is a supported feature. |
I went to uninstall cocoapods-core but it was showing as version (0.17.0.rc6)
got those removed and then performed a
Still running into the same "author undefined" issue. Stack information that might be relevant? Stack
Error
Could I be using a different Ruby version that could be causing this issue? |
Maybe. In your original post you said:
But as can be seen from the paths in the stack trace, you are actually using the system Ruby. I’m not sure what’s happening, though, because it does look like it’s using the correct gems. |
FWIW, it works from my end with BlocksKit:
|
This is driving me nuts! Some interesting methods:
@normanhh3 It would be great if you could modify the following line:
With the following: DSL.attributes.values.each do |a|
puts "attribute = #{a}"
define_method(a.writer_name) do |value|
store_attribute(a.name, value)
end
if a.writer_singular_form
puts "a.writer_singular_form = #{a.writer_singular_form}"
alias_method(a.writer_singular_form, a.writer_name)
end
end The only thing that I can think of is the String#singularize not working properly maybe because there is an old version of |
It appears that I ended up running a
Which did include an update to activesupport and it appears that may have solved this issue because I am now getting past that bug. My current activesupport version(s)
My new cocoapod is breaking - but that isn't the fault of this new release! |
Yup, that’s it. I can confirm that I get the same error with ActiveSupport 3.2.6. It works correct with >= 3.2.7, so we should probably bump the version requirement to the current version. |
@normanhh3 Thanks for helping us get to the root cause! |
* 'master' of github.com:CocoaPods/CocoaPods: Bump ActiveSupport dependency to *not* be 3.2.6, which has an inflector bug. Fixes #816.
Awesome to see the changeset in so fast! :-) Nice work, glad to be of service. Cocoapods is a great little package management tool. |
OHHTTPStubs need ARC enabled in order for responseWithError to work
Can you guys make this a question/answer on Stackoverflow? Spent a long time looking around for this issue. Appreciate the commentary in here. Thanks. |
This morning I updated my RubyGems to the latest version and then updated Cocoapods to 0.17.0.rc1. When I tried then to run
pod install
I got that error message.I tried to remove that dependency, but I got a similar error for almost all the other dependencies (in some of them "framework" was the undefined method, for instance).
I tried then to rollback to Cocoapods 0.16.4, but still the same.
Also with older versions of RubyGems now I get the same error (honestly, I don't remember which one was the version I was using before upgrading this morning).
Could anyone give me an hint on how to fix this thing? I'm completely lost.
I'm using ruby-1.9.3-p194 and Mac OSX 10.7.5. Thanks
The text was updated successfully, but these errors were encountered: