What is the error undefined method `driver_quit' and how to solve it

I am automating iOS native app using appium and getting this error-

what is this error and how to solve it?

undefined method `driver_quit’ for #<Selenium::WebDriver::Driver:0x…fa2c6fae8ec23ff1c browser=:iOS> (NoMethodError)

/Users/ss/.rvm/gems/ruby-2.1.2/gems/appium_lib-4.0.0/lib/appium_lib/driver.rb:245:in initialize' /Users/ss/appium1/features/support/env.rb:36:innew’
/Users/ss/appium1/features/support/env.rb:36:in <top (required)>' /Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/rb_support/rb_language.rb:122:inload’
/Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/rb_support/rb_language.rb:122:in load_code_file' /Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/runtime/support_code.rb:180:inload_file’
/Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/runtime/support_code.rb:83:in block in load_files!' /Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/runtime/support_code.rb:82:ineach’
/Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/runtime/support_code.rb:82:in load_files!' /Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/runtime.rb:184:inload_step_definitions’
/Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/runtime.rb:42:in run!' /Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/lib/cucumber/cli/main.rb:47:inexecute!’
/Users/ss/.rvm/gems/ruby-2.1.2/gems/cucumber-1.3.11/bin/cucumber:13:in <top (required)>' /Users/ss/.rvm/gems/ruby-2.1.2/bin/cucumber:23:inload’
/Users/ss/.rvm/gems/ruby-2.1.2/bin/cucumber:23:in <main>' /Users/ss/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:ineval’
/Users/ss/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `’