Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frank could not launch simulator after update xcode to 5.1 #272

Open
roy-tang-hs opened this issue Mar 13, 2014 · 25 comments
Open

frank could not launch simulator after update xcode to 5.1 #272

roy-tang-hs opened this issue Mar 13, 2014 · 25 comments

Comments

@roy-tang-hs
Copy link

Just update xcode to 5.1, after that unable to launch the simulator.

Details:

Frank Launch.

LAUNCHING APP...
sh: line 1: 44406 Trace/BPT trap: 5 /Library/Ruby/Gems/1.8/gems/sim_launcher-0.4.6/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1
sh: line 1: 44409 Trace/BPT trap: 5 /Library/Ruby/Gems/1.8/gems/sim_launcher-0.4.6/lib/sim_launcher/../../native/ios-sim "launch" "/Users/royt/practice/temp/Frank/frankified_build/Frankified.app" "--sdk" "" "--family" "iphone" "--exit" 2>&1

I believe this was caused by xcode 5.1, any change I could make on the Frank side to solve this problem? Thanks

@forrestgrant
Copy link

+1

@moredip
Copy link
Owner

moredip commented Mar 14, 2014

I just released a new version of the sim_launcher gem. Can you update to the latest of that gem (0.4.9) and then try again?

@forrestgrant
Copy link

I updated, but same result.
I just get: PING FAILED

I'm using RubyMotion, if that helps.

Gem Versions:

frank-cucumber (1.2.2)
motion-frank (1.2.2.0)
sim_launcher (0.4.9)

@RayAnd
Copy link

RayAnd commented Mar 14, 2014

We have tried 0.4.9 locally to and it gives me following:

361:404: execution error: System Events got an error: Can’t get window 1 of process "iPhone Simulator". Invalid index. (-1719)

I have following setup

frank-cucumber (1.2.2)
sim_launcher (0.4.9)

Basically you can see Simulator window for a second and than it's crashing.

@roy-tang-hs
Copy link
Author

thanks @moredip, after upgrading gem_launcher to 0.4.9, I am able to launch the simulator and my tests start to run. There is an error msg: xcode-select: Error: unknown command option '-p'.

Besides this, the simulator was launched at 3.5 inch screen every time and I am unable to switch to 4 inch. Any idea I could solve this on my side? My test requires 4 inch screen.

@forrestgrant
Copy link

Since @zijunt mentioned the screen size, I'm trying to run on the iPad simulator. Not sure if that makes a difference.

@forrestgrant
Copy link

Any updates, @moredip?

@forrestgrant
Copy link

I finally got it to work. After a lot of digging, I discovered that I had a few versions of ios-sim installed via npm, and nvm. If anyone else is still having issues, try which ios-sim, if you get anything except ios-sim not found, chances are there is another version overriding sim_launcher.

Thanks for the great stuff, @moredip, I love testing with frank!

@atirodkar3
Copy link

Contrary to the comment above, the problem for me is that I actually needed to get ios-sim into my bundle in order to get the simulator to launch. For multiple tests, I quit and restart the simulator every time. However, I cannot seem to get it running on a 4 inch simulator (7.1). Anyone else faced this problem?

@michaelhayman
Copy link

Just FYI, I had the same thing happen to me today after a fresh install of Frank and the sample app. A

gem install sim_launcher

Fixed my issue (the gem wasn't installed previously). May want to add that to the installation instructions.

@roy-tang-hs
Copy link
Author

Any update to launch 4 inch simulator? Thx

@atirodkar3
Copy link

Updating the sim_launcher worked for me. There are a set of parameters that sim_launcher requires. Hardcoding them to your environment should get you past any problems.

@atirodkar3
Copy link

But I still am not able to get Simulator Version 7.1 running.

@RayAnd
Copy link

RayAnd commented Mar 27, 2014

same, still have an issue

361:404: execution error: System Events got an error: Can’t get window 1 of process "iPhone Simulator". Invalid index. (-1719)

with latest setup of Frank and Sim Launcher on completely new System install.

@joemasilotti
Copy link
Contributor

@moredip, can you please update the frank-cucumber gem to require sim-launcher 0.4.9?

@lor555
Copy link

lor555 commented Apr 4, 2014

Can someone tell me where and which are the parameters I need to change so that frank launch opens the 4 inch simulator by default?

@dnwood
Copy link

dnwood commented Apr 9, 2014

+1 Still having this issue. Can someone please post the solution?

@pmor13
Copy link

pmor13 commented Apr 25, 2014

+1 It will be great to drive a command like this: -device "iPhone (Retina 4-inch)".

@steven-solomon
Copy link

I might be mistaken but I believe it will just frankify your last build, so if you want to run frank for a specific configuration build the app in that way.

Thanks
Steven Solomon

Sent from my Apple Lisa.

On Apr 25, 2014, at 6:07 PM, Pavel Morozkin notifications@github.com wrote:

+1 It will be great to drive a command like this: -device "iPhone (Retina 4-inch)".


Reply to this email directly or view it on GitHub.

@athenatk
Copy link

This is still an issue for me. I am unable to launch the simulator in 4-inch. It always launches in 3.5-inch. Can we get this fixed please?

@npahucki
Copy link

Here we are in August, is there still no way to launch the simulator with the 4 inch screen?

@npahucki
Copy link

In case this helps anyone else, here is a work around if you're primarily interested in running with larger devices. Open /gems/ruby-2.1.2/gems/sim_launcher-0.4.11/lib/sim_launcher/simulator.rb and find the line 'def launch_ios_app(app_path, sdk_version, device_family, app_args = nil)' (line 48 in v0.4.11). Scroll down a few lines (line 55 in v0.4.11) to find the line:

run_synchronous_command( :launch, app_path,'--sdk', sdk_version, '--family', device_family, '--exit', *args )

Change this to (insert the --tall and --retina):

run_synchronous_command( :launch, app_path, '--tall','--retina'  ,'--sdk', sdk_version, '--family', device_family, '--exit', *args )

The --tall and --retina will get you the iphone 5.0 simulator. If you want other device types, see https://github.com/phonegap/ios-sim/blob/master/README.md for other options you could use.

HTH.

@veswaran
Copy link

veswaran commented Mar 2, 2016

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

Updated the sim_launcher (0.5.0) but later it conflicts with frank build
/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

Updated frank to latest, thinking it will refer latest sim_launcher. But it doesn't seem to be the case.
I have xcode v7.2 installed.

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

Regards,
Vijay

@veswaran
Copy link

veswaran commented Mar 2, 2016

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

brew install ios-sim

@Bodacious
Copy link

Still seeing this issue in a fresh RubyMotion app

* CFPropertyList (2.3.4)
* activesupport (5.0.1)
* builder (3.2.3)
* bundler (1.13.6)
* claide (1.0.1)
* colored (1.2)
* concurrent-ruby (1.0.4)
* cucumber (2.4.0)
* cucumber-core (1.5.0)
* cucumber-wire (0.0.1)
* diff-lcs (1.3)
* dnssd (3.0.1)
* frank-cucumber (1.2.2)
* gherkin (4.0.0)
* i18n (0.7.0)
* json (2.0.3)
* minitest (5.10.1)
* motion-frank (1.2.2.0)
* multi_json (1.12.1)
* multi_test (0.1.2)
* nanaimo (0.2.3)
* plist (3.2.0)
* rack (1.6.5)
* rack-protection (1.5.3)
* rake (12.0.0)
* rspec (3.5.0)
* rspec-core (3.5.4)
* rspec-expectations (3.5.0)
* rspec-mocks (3.5.0)
* rspec-support (3.5.0)
* sim_launcher (0.5.0)
* sinatra (1.4.7)
* thor (0.19.4)
* thread_safe (0.3.5)
* tilt (2.0.5)
* tzinfo (1.2.2)
* xcodeproj (1.4.2)

I've updated brew install ios-sim, but still no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests