Flutter pod install problem - undefined method `each_child' for #<Dir:0x00007fa6f7e2ec80>
The method dir.each_child
was introduced in Ruby 2.6, but you are using Ruby 2.3.0.
You should update Ruby to 2.6.0 or later 2.x version.
After Ruby updating you may also need to restart your IDE and re-install cocoapods.
The Dir#each_child
instance method was introduced in Ruby 2.6, but you're using 2.3.
You should update to Ruby 2.6 or later.
Please note that Ruby 2.5 only introduced Dir.each_child
class method, not the instance method used by Flutter's podhelper.rb
Dir.new(configuration_engine_dir).each_child do |xcframework_file| # ...end