CocoaPods / CocoaPods

The Cocoa Dependency Manager.
https://cocoapods.org/
Other
14.47k stars 2.62k forks source link

Getting error while installing pods #12417

Closed amrinder2105 closed 1 week ago

amrinder2105 commented 1 week ago

Using pods in my project and while installing pods getting following error:

Error


REXML::ParseException - #<TypeError: wrong argument type String (expected Regexp)>
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/source.rb:220:in `scan'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/source.rb:220:in `match'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:227:in `pull_event'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:207:in `pull'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:23:in `parse'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:448:in `build'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:101:in `initialize'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:71:in `integrate!'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:925:in `integrate_user_project'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:185:in `integrate'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `install!'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/Users/amrindersingh/.gem/ruby/2.6.0/bin/pod:23:in `load'
/Users/amrindersingh/.gem/ruby/2.6.0/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/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:96:in `rescue in parse'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:21:in `parse'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:448:in `build'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:101:in `initialize'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:71:in `integrate!'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:925:in `integrate_user_project'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:185:in `integrate'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `install!'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Users/amrindersingh/.gem/ruby/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/Users/amrindersingh/.gem/ruby/2.6.0/bin/pod:23:in `load'
/Users/amrindersingh/.gem/ruby/2.6.0/bin/pod:23:in `<main>'

**I'm using macbook pro M1 chipset.**