CocoaPods / CocoaPods/Xcodeproj

Pod install fails because of rexml

Open
#943 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

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 - #
/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 `'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `'
...
wrong argument type String (expected Regexp)
Line: 1
Position: 38
Last 80 unconsumed characters:

/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 `'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `'
```

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

Contributor guide

No contributing guide indexed for this repository

Research direction

The failure occurs while xcodeproj/workspace.rb:83 parses an Xcode workspace through REXML 3.2.9. Start by checking how Xcodeproj declares its REXML dependency, then reproduce the issue with /usr/local/bin/pod install on the reported stack. Done means installation no longer raises the REXML TypeError with the supported dependency version.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, ruby
Domain
build-system, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.