parallel_calabash icon indicating copy to clipboard operation
parallel_calabash copied to clipboard

iOS App execution error

Open imsiddharth opened this issue 8 years ago • 10 comments

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

imsiddharth avatar Apr 08 '16 07:04 imsiddharth

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

azohra avatar Apr 08 '16 14:04 azohra

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

imsiddharth avatar Apr 11 '16 05:04 imsiddharth

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'

azohra avatar Apr 11 '16 12:04 azohra

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

imsiddharth avatar Apr 11 '16 13:04 imsiddharth

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.

azohra avatar Apr 11 '16 13:04 azohra

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 avatar Apr 12 '16 07:04 imsiddharth

Not Able to recognise the device ID

imsiddharth avatar Apr 12 '16 08:04 imsiddharth

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'.

sleekweasel avatar Apr 15 '16 11:04 sleekweasel

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.

imsiddharth avatar Apr 16 '16 12:04 imsiddharth

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.

sleekweasel avatar Apr 18 '16 12:04 sleekweasel