Help - NoMethodError: undefined method `strip' for nil:NilClass

1,088 views
Skip to first unread message

sangeeth k

unread,
Sep 19, 2016, 7:17:02 AM9/19/16
to calabash-ios
Hi,

I am facing this issue for past three days. please share me your suggestion.
When try to execute calabash-iso console, the below error occurs.

MyiOSapp$calabash-ios console

Running irb...

load error: /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.0/scripts/.irbrc

NoMethodError: undefined method `strip' for nil:NilClass

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/version.rb:65:in `initialize'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:210:in `new'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:210:in `block (2 levels) in version'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:308:in `block in execute_command'

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:217:in `popen_run'

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:99:in `popen3'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:307:in `execute_command'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:208:in `block in version'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:212:in `call'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:212:in `version'

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.0/lib/run_loop/xcode.rb:127:in `version_gte_8?'

/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.0/lib/calabash-cucumber/uia.rb:535:in `redefine_instance_methods_if_necessary'

/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.0/scripts/.irbrc:88:in `<top (required)>'

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/irb/init.rb:236:in `load'

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/irb/init.rb:236:in `run_config'

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/irb/init.rb:19:in `setup'



I have been struck with this issue.i could not launch my app. 

Devendra Singh Bhadoriya

unread,
Oct 27, 2016, 10:01:51 AM10/27/16
to calabash-ios
Hi Sangeeth,

Did you find any solution for this issue, I too stuck with it.

Best Regards
Devendra

Joshua Moody

unread,
Nov 2, 2016, 4:35:09 AM11/2/16
to calabash-ios
It looks like you do not have Xcode installed.

You are also using Apple's system ruby which is no longer supported.

Please install ruby with rbenv.

Read this:


and then do this:

Reply all
Reply to author
Forward
0 new messages