moredip / Frank

Automated acceptance tests for native iOS apps
www.testingwithfrank.com
Apache License 2.0
1.21k stars 237 forks source link

Unable to execute 'frank launch' command #280

Open sonir6 opened 9 years ago

sonir6 commented 9 years ago

I am trying to launch frank on 2012 Olympics code build however getting the following error:-

➜ 2012 Olympics git:(master) ✗ frank launch
WARN: Unresolved specs during Gem::Specification.reset: rake (>= 0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. LAUNCHING APP... /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/simulator.rb:104: warning: Insecure world writable dir /usr/share/node/js in PATH, mode 040777 sh: line 1: 6110 Trace/BPT trap: 5 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1 sh: line 1: 6114 Segmentation fault: 11 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "launch" "/Users/rohit/Documents/MEA/mauto/2012-Olympics-iOS--iPad-and-iPhone--source-code/2012 Olympics/Frank/frankified_build/Frankified.app" "--tall" "--retina" "--sdk" "--family" "iphone" "--exit" 2>&1

I also tried updating file simulator.rb with run_synchronous_command() as suggested in frank issue 272 however no luck:- https://github.com/moredip/Frank/issues/272

PS: I am successfully able to complete steps before frank launch using steps at the following url:- http://blog.thepete.net/blog/2012/06/24/writing-your-first-frank-test/

Appreciate any help so that I can execute launch and inspect frank commands please.

Regards Rohit

veswaran commented 8 years ago

Tried couple of things, no luck. Still running into same issue.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'sim_launcher' (~> 0.4.6) - did find: sim_launcher-0.5.0

Would be great if someone can look at it and fix the issue at the earliest.

Regards, Vijay

veswaran commented 8 years ago

Looks like with brew install ios-sim, above issue is fixed. Able to launch the app using frank now.

brew install ios-sim

@sonir6 - Perhaps you can give it a try.