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

asdf pod not updated with cocoapods #7

Closed
Shahrukh0396 opened this issue Feb 24, 2024 · 2 comments
Closed

asdf pod not updated with cocoapods #7

Shahrukh0396 opened this issue Feb 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Shahrukh0396
Copy link

Shahrukh0396 commented Feb 24, 2024

**Describe the bug

i was trying to update cocoapods using asdf and it was updated successfully to latest version 1.15.2 but pod --version still shows me 1.11.3.

Steps to reproduce

pod --version
1.11.3

whereis pod
pod: /Users/shahrukh/.asdf/shims/pod

which pod
/Users/shahrukh/.asdf/shims/pod

asdf current cocoapods
cocoapods 1.15.2 /Users/shahrukh/.tool-versions

Expected behavior

pod --version should return the same version as cocoapods

Please help!

@Shahrukh0396 Shahrukh0396 added the bug Something isn't working label Feb 24, 2024
@ronnnnn
Copy link
Owner

ronnnnn commented Feb 25, 2024

@Shahrukh0396
Have you already tried the asdf reshim command? 1

If it still doesn't work, please try reinstalling the plugin in the following order after removing it.

asdf plugin-remove ruby
asdf plugin-remove bundler
asdf plugin-remove cocoapods
asdf plugin-add ruby
asdf plugin-add bundler
asdf plugin-add cocoapods
asdf install ruby <version>
asdf install bundler <version>
asdf install cocoapods <version>

The .tool-versions file doesn't care about the installation order, so it's important to manually install them in sequence.

Footnotes

  1. https://asdf-vm.com/manage/core.html#reshim

@Shahrukh0396
Copy link
Author

thanks @ronnnnn this really worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants