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

Calabash doesn't work with Xcode 10.2 #1407

Closed
penknife opened this issue Mar 26, 2019 · 13 comments
Closed

Calabash doesn't work with Xcode 10.2 #1407

penknife opened this issue Mar 26, 2019 · 13 comments

Comments

@penknife
Copy link

penknife commented Mar 26, 2019

When I try to launch calabash console on new simulator iOS version 12.2, I have got ArgumentError (Could not find a device with a UDID or name matching 'iPad Air (12.2)')
instruments -s devices shows me that this version is available
Command which i use
DEVICE_TARGET="iPad Air (12.2)" APP_BUNDLE_PATH="App_name-cal.app" calabash-ios console
Simulator version Version 10.2
Xcode version 10.2

@AqaSquad
Copy link

Have you gotten this to work on Xcode versions older than 10.2?

What happens if you try to use the device udid for DEVICE_TARGET and APP env var instead of APP_BUNDLE_PATH pointing to your fully qualified application path?

@JoeSSS
Copy link
Contributor

JoeSSS commented Mar 26, 2019

it seems like Calabash do not work with latest Xcode version on the moment. From the first look, it seems like Apple changed the way they display names and versions and Calabash is very confused (saying that for example the iOS version is 0.0).

@jmoody
Copy link
Contributor

jmoody commented Mar 27, 2019

The fix will be in run-loop. See the simctl.rb and device.rb files for how the output from xcrun simctl is parsed.

In the meantime, you can probable use: DEVICE_TARGET=<UDID> => the identifier of the simulator.

@JoeSSS
Copy link
Contributor

JoeSSS commented Mar 27, 2019

just DEVICE_TARGET won't help, the next problem (at least from start_test_server_in_background)_
is iOS version is 0.0

@penknife
Copy link
Author

penknife commented Mar 27, 2019

Yeah when u use UDID
RuntimeError (
Invalid Xcode and iOS combination:

Xcode version: 10.2
iOS version: 0.0.0

@AlexWellsHS
Copy link
Contributor

im getting a different error:

export DEVICE_TARGET=7b0a804bb7193bdf3bb8b0063e7ece741d0c0c38
export DEVICE_ENDPOINT=http://10.10.11.88:37265
bundle exec calabash-ios console
calabash-ios 0.21.8> start_test_server_in_background
RunLoop::Shell::Error:
There was an error executing:

/Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 7b0a804bb7193bdf3bb8b0063e7ece741d0c0c38

The command generated this output:

This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.

	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/shell.rb:116:in `run_shell_command'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/ios_device_manager.rb:146:in `launch'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/client.rb:1474:in `launch_cbx_runner'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/client.rb:313:in `launch'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/client.rb:184:in `run'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop.rb:113:in `run'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:414:in `block in new_run_loop'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:412:in `times'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:412:in `new_run_loop'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:365:in `relaunch'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/core.rb:1576:in `start_test_server_in_background'
	from (irb):1
	from /Users/alexwells/.rbenv/versions/2.3.1/bin/irb:11:in `<main>'

@JoeSSS
Copy link
Contributor

JoeSSS commented Mar 27, 2019 via email

@AqaSquad
Copy link

Tried a build of run_loop with your branch and it got past the Invalid Xcode and iOS combination on simulator. Thanks @JoeSSS !

Oddly enough this issue was occurring on Mojave even with Xcode 10.1 / Command Line tools 10.1.

@JoeSSS any plans to PR your proposal or is this already being fixed by @jmoody ?

@katia-kozlova
Copy link

Is there any estimation when this will be fixed?

@jmoody
Copy link
Contributor

jmoody commented Apr 3, 2019

I released run-loop 4.2.0 today. Try updating.

I have not done any QA on DeviceAgent and iOSDeviceManager for Xcode 10.2.

@katia-kozlova
Copy link

worked for me, thank you a lot!

@lmr3
Copy link

lmr3 commented Apr 10, 2019

I have using run-loop 4.2.0 , but the error still exists.

im getting a different error:

export DEVICE_TARGET=7b0a804bb7193bdf3bb8b0063e7ece741d0c0c38
export DEVICE_ENDPOINT=http://10.10.11.88:37265
bundle exec calabash-ios console
calabash-ios 0.21.8> start_test_server_in_background
RunLoop::Shell::Error:
There was an error executing:

/Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 7b0a804bb7193bdf3bb8b0063e7ece741d0c0c38

The command generated this output:

This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.

	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/shell.rb:116:in `run_shell_command'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/ios_device_manager.rb:146:in `launch'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/client.rb:1474:in `launch_cbx_runner'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/client.rb:313:in `launch'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/client.rb:184:in `run'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop.rb:113:in `run'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:414:in `block in new_run_loop'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:412:in `times'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:412:in `new_run_loop'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/launcher.rb:365:in `relaunch'
	from /Users/alexwells/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/calabash-cucumber-0.21.8/lib/calabash-cucumber/core.rb:1576:in `start_test_server_in_background'
	from (irb):1
	from /Users/alexwells/.rbenv/versions/2.3.1/bin/irb:11:in `<main>'

@jmoody
Copy link
Contributor

jmoody commented Apr 10, 2019

We have fixed that bug. I will try to make a release soon. If you want to try building a new version of iOSDeviceManager and installing it into run_loop, ping me on Gitter.

@jmoody jmoody closed this as completed Apr 29, 2019
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

7 participants