-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
pod install not working #12407
Comments
I have the exact issue; trying to recompile and build a project for customer after clean mac sonoma install ad installing xcode 15.4 Stack
Error
|
The issue seems to be related to rexml: ruby/rexml#142 |
I am also having same exact issue ,have been trying this for hours |
@ndevev @anusha-chromosis
|
CocoaPods/Xcodeproj#944 will solve this. |
Could you show the output of The following command lines may be another workaround: $ sudo gem install rexml -v 3.2.6
$ sudo gem uninstall rexml -v 3.2.9 The following command lines may be another workaround: $ sudo gem install strscan |
The context of my problem was that I was getting the error while running a Flutter app with plugins. The default one didn't gave me any problem. Also, I was getting the exact same issue that the original issue poster, same Ruby version, same lines, etc., but on an M1 device. In my situation, the problem was solve once I removed cocoapods completely and then installed it again. I remove it using: But I was still getting a result while executing: Then I use: To find the path of the pods installation that was still on the computer. So I executed: Then I run pod --version to make sure it was completely deleted. I installed it again using: Then I run the app again and it worked. |
It happened when I was trying to set up a new MacBook Air. I couldn't solve it so I went back to the factory default and then migrated everything from my old one. And this worked well. So I can't send the gem list. |
great, thx |
The reason you're seeing this error is because you're using the system Ruby (the Ruby version that came preinstalled on your Mac), or a version of Ruby older than 3.x that you installed yourself. Instead, I highly recommend using a version manager (such as chruby, rbenv, asdf) to install a newer and separate Ruby version that won't have this rexml issue. The solutions offered here so far might work, but they are far from ideal, and can cause other issues. I've written popular articles that explain Why You Should Never Use sudo to Install Ruby Gems and Why You Shouldn't Use the System Ruby to Install Gems on a Mac. To understand why this REXML error happens with older Ruby versions, and how to properly install a newer version of Ruby, read my latest article: How to fix REXML::ParseException TypeError in Cocoapods. |
Thanks man. This solution worked for me. |
Worked for me thanks. |
This solution really worked. Thanks man. |
This worked for me after hours and hours of debugging! Thanks |
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
The text was updated successfully, but these errors were encountered: