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

NoMethodError ruby or cocoa pods #56

Open
acidlynx opened this issue Jan 11, 2022 · 4 comments · May be fixed by #57
Open

NoMethodError ruby or cocoa pods #56

acidlynx opened this issue Jan 11, 2022 · 4 comments · May be fixed by #57

Comments

@acidlynx
Copy link

Hello! When I used this plugin, I get this error.

NoMethodError - undefined method `sub' for <Pod::Version version=0.2.7.6>:Pod::Version
/Users/user/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/bundler/gems/cocoapods-bazel-61eda975362f/lib/cocoapods/bazel/xcconfig_resolver.rb:11:in `block in resolved_build_setting_value'
@thiagohmcruz
Copy link
Contributor

Hi @acidlynx this code path comes from here but it's really hard to guess what is going without a way to reproduce.

Would you be able to share a small project that reproduces the issue?

@acidlynx acidlynx linked a pull request Jan 14, 2022 that will close this issue
@acidlynx
Copy link
Author

@thiagohmcruz Hello! I just made PR. Please review it. Thanks!

@thiagohmcruz
Copy link
Contributor

@acidlynx that's awesome! Thx for the contribution!

Would you be able to share an example project that reproduces the issue or alternatively the .xcconfig that was being translated and somehow contained <Pod::Version version=0.2.7.6>:Pod::Version?

I still don't understand how the issue happened in the first place, it could be that the problem is somewhere else as I wouldn't expect this value coming from a xcconfig

@acidlynx
Copy link
Author

@acidlynx that's awesome! Thx for the contribution!

Would you be able to share an example project that reproduces the issue or alternatively the .xcconfig that was being translated and somehow contained <Pod::Version version=0.2.7.6>:Pod::Version?

I still don't understand how the issue happened in the first place, it could be that the problem is somewhere else as I wouldn't expect this value coming from a xcconfig

Ok. I'll do it.
It seems that some code cannot parse four-numbers versions (like 0.2.7.6 in my case). With three-numbers is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants