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

Pod install fails because of rexml #943

Open
f-pennacchio opened this issue Jun 11, 2024 · 0 comments
Open

Pod install fails because of rexml #943

f-pennacchio opened this issue Jun 11, 2024 · 0 comments

Comments

@f-pennacchio
Copy link

f-pennacchio commented Jun 11, 2024

I upgraded to sonoma and xcode 14.5 with a clean install.
I'm trying to build customer project, when I type

Command

/usr/local/bin/pod install

I get:

Error

REXML::ParseException - #<TypeError: wrong argument type String (expected Regexp)>
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/source.rb:220:in `scan'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/source.rb:220:in `match'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:227:in `pull_event'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:207:in `pull'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:23:in `parse'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:448:in `build'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:101:in `initialize'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/user_project_integrator.rb:71:in `integrate!'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:860:in `block in integrate_user_project'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:856:in `integrate_user_project'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:182:in `integrate'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
...
wrong argument type String (expected Regexp)
Line: 1
Position: 38
Last 80 unconsumed characters:
<?xml version="1.0" encoding="UTF-8"?>
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:96:in `rescue in parse'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:21:in `parse'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:448:in `build'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:101:in `initialize'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/user_project_integrator.rb:71:in `integrate!'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:860:in `block in integrate_user_project'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:856:in `integrate_user_project'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:182:in `integrate'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Users/Stefano/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

This is the stack:

Stack

   CocoaPods : 1.11.3
        Ruby : ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin23]
    RubyGems : 3.0.1
        Host : macOS 14.4.1 (23E224)
       Xcode : 15.4 (15F31d)
         Git : git version 2.39.3 (Apple Git-146)
Ruby lib dir : /Users/Stefano/.rbenv/versions/2.6.0/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Looking in rexml repository I found ruby/rexml#142 and a new version (3.3.0) has been released to fix the issue.
Can you update rexml dependency or provide a way to override dependency?
Thank you

kou added a commit to kou/Xcodeproj that referenced this issue Jun 11, 2024
fix CocoaPods#943

REXML doesn't use the semantic versioning. So `~> 3.2.4` doesn't match
for REXML dependency. For example, 3.3.0 doesn't have backward
incompatibility.
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.

1 participant