MobileNativeFoundation / bluepill

Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine
BSD 2-Clause "Simplified" License
3.19k stars 232 forks source link

Crash on Xcode 11.5 #450

Closed Mehdzor closed 4 years ago

Mehdzor commented 4 years ago

When running tests on Xcode 11.5 it crashes with the following exception. It was working fine on Xcode 11.4.

[11:56:56]: ▸ 2020-06-17 11:56:56.250 bluepill[85612:1160270] Debug Enabled == 0
[11:56:56]: ▸ {85612} 20200617.115656 [  INFO  ] (BLUEPILL) Using xctestrun configuration
[11:56:56]: ▸ 2020-06-17 11:56:56.829 bluepill[85612:1160270] -[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x7f85a2c1bf30
[11:56:56]: ▸ 2020-06-17 11:56:56.829 bluepill[85612:1160270] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x7f85a2c1bf30'
[11:56:56]: ▸ *** First throw call stack:
[11:56:56]: ▸ (
[11:56:56]: ▸   0   CoreFoundation                      0x00007fff32515d07 __exceptionPreprocess + 250
[11:56:56]: ▸   1   libobjc.A.dylib                     0x00007fff6b2395bf objc_exception_throw + 48
[11:56:56]: ▸   2   CoreFoundation                      0x00007fff32594c97 -[NSObject(NSObject) __retain_OA] + 0
[11:56:56]: ▸   3   CoreFoundation                      0x00007fff3247a57b ___forwarding___ + 1427
[11:56:56]: ▸   4   CoreFoundation                      0x00007fff32479f58 _CF_forwarding_prep_0 + 120
[11:56:56]: ▸   5   bluepill                            0x0000000108b77256 bluepill + 131670
[11:56:56]: ▸   6   bluepill                            0x0000000108b6362d bluepill + 50733
[11:56:56]: ▸   7   bluepill                            0x0000000108b63bea bluepill + 52202
[11:56:56]: ▸   8   bluepill                            0x0000000108b5abb0 bluepill + 15280
[11:56:56]: ▸   9   libdyld.dylib                       0x00007fff6c3e0cc9 start + 1
[11:56:56]: ▸ )
[11:56:56]: ▸ libc++abi.dylib: terminating with uncaught exception of type NSException
Mehdzor commented 4 years ago

It looks like the TestPlan format has changed. It is expecting dictionary where the parser returns an array.

Mehdzor commented 4 years ago

Please, find the xctest run file attached.

iphonesimulator13.5-x86_64.xctestrun.zip

ravimandala commented 4 years ago

@Mehdzor Please answer the below questions as best as you can. That will help us investigate this further.

  1. May I know which version of Bluepill were you using?
  2. Were you able to fix/mitigate the issue?
  3. Did you try the latest version (v5.4.0 or v5.4.1) that supports Xcode 11.5?

Please let us know. Thanks.

ravimandala commented 4 years ago

@Mehdzor, I'm closing this issue assuming you were able to resolve it. This thread in ios-dev-at-scale Slack workspace might be relevant. Please re-open this issue if you need more help. Thanks.