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

iOS App execution error #22

Open
imsiddharth opened this issue Apr 8, 2016 · 10 comments
Open

iOS App execution error #22

imsiddharth opened this issue Apr 8, 2016 · 10 comments

Comments

@imsiddharth
Copy link

Could not find a device with a UDID or name matching 'PCal- (0.0)' (ArgumentError)
1
2
3
4
parallel_calabash_error.zip

Not able to execute test in parallel for iOS device.
Followed the instruction given on README.

Thanks for the help

@azohra
Copy link

azohra commented Apr 8, 2016

This is caused by the depricstion of simulator checking in run-loop 2.1.0, not something that can be fixed by parallel tests. You can get the old functionality by downgrading to 2.0.9

@imsiddharth
Copy link
Author

Thanks @tk8817 Downgrading to 2.0.9 didn't worked out. Still same error.

@azohra
Copy link

azohra commented Apr 11, 2016

Are you sure you downgraded? The only way to get that error is with run_loop 2.1.0 --(read the error carefully and you will see it says '2.1.0' explicitly)

When running your tests, put bundle exec before the run command, ensure you have removed 2.1.0 by doing 'bundle clean --force'

@imsiddharth
Copy link
Author

Yup rechecked every thing and not working for me

screen shot 2016-04-11 at 6 53 44 pm
screen shot 2016-04-11 at 6 53 55 pm

@azohra
Copy link

azohra commented Apr 11, 2016

Hi Siddarth, you replied saying 'you still get the same error' but that is not possible because the error only exists when using 2.1.0

The possibilities are:

  1. you are getting a new different error. If so, please post it.
  2. you are still getting 2.1.0 loaded at runtime. If so, please understand the gem file does NOT determine what gets loaded at runtime in all cases. Ensure you have done a bundle clean --force and are using bundle exec before your launch commands.

Best,
Justin.

@imsiddharth
Copy link
Author

Thanks Justin,
Somehow it was using run_loop 2.1.0 after fix

getting runtime error for iOS

screen shot 2016-04-12 at 1 02 23 pm

Config file ~/.parallel_calabash.iphoneos

screen shot 2016-04-12 at 1 27 00 pm

Thanks for the help :)

@imsiddharth
Copy link
Author

Not Able to recognise the device ID

@sleekweasel
Copy link
Collaborator

sleekweasel commented Apr 15, 2016

Your config file has a DEVICES clause with two phones listed, so you're trying to run with those two phones.

If none of the phones is attached, it should refuse to run because you've specified running on phones and accidentally running on simulators isn't equivalent to real device testing.

Because it says '1 devices found, { DEVICE_TARGET = nil, DEVICE_ENDPOINT = nil }' I'm guessing it's decided that neither of your phones is attached, but it isn't telling you that with a clear error message.

If you want to run against the phones, plug them in. If they are plugged in, then we'll need to work out why it can't see them.

If you want to run against simulators, comment out the DEVICES clause, as the comment immediately above the DEVICES line says: 'Omit devices entirely if you're only testing on simulators'.

@imsiddharth
Copy link
Author

Tim ( @sleekweasel ) ::

  1. Physical device are attached with network cable on mac machine, Enabled with Developer options (both are iPhone 6 ios version :: 9.2.0, 9.3.1).
  2. Pinged devices individually over terminal ( to verify devices are connected with same network )
  3. followed Set up steps for iOS on Parallel Clabash Readme

As per my understanding with your above comment.

  • If you want to run against the phones, plug them in :: Phones are plugged in.
  • Not testing on simulators

Still trying to figure out why it's not working.

@sleekweasel
Copy link
Collaborator

sleekweasel commented Apr 18, 2016

Can you copy/paste the files involved, instead of posting screenshots? I don't want to have to type your files out again manually because that's error-prone.

I presume by 'network cable' you mean 'usb cable'.

Can you run 'instruments -s devices' and check they show up, and that the ids match? Post the results for the phones involved, please.

The error about 'eval expected } but received tFLOAT' says there's a typographic error in your config file. I can't see anything wrong, but if you could run 'ruby .parallel_calabash.iphoneos' and track that down, it would certainly help.

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

3 participants