CocoaPods / Xcodeproj

Create and modify Xcode projects from Ruby.
http://rubygems.org/gems/xcodeproj
MIT License
2.37k stars 458 forks source link

Pod install fails because of rexml #943

Open f-pennacchio opened 5 months ago

f-pennacchio commented 5 months ago

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 https://github.com/ruby/rexml/issues/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