kif-framework / KIF

Keep It Functional - An iOS Functional Testing Framework
Other
6.21k stars 914 forks source link

[UITouch setIsTap:]: unrecognized selector sent to instance on iOS 15 #1233

Closed emanueluayza closed 3 years ago

emanueluayza commented 3 years ago

Hi there!

I was testing iOS 15 with Xcode 13.0 beta 4 and I saw multiple tests failures with this error:

-[UITouch setIsTap:]: unrecognized selector sent to instance 0x7fce650c59a0 (NSInvalidArgumentException)

Screen Shot 2021-07-28 at 19 38 32

This happens when I call clearTextFromAndThenEnterText, tapViewWithAccessibilityLabel or dragFromPoint.

I played around a little bit with your code and I saw the error is under UITouch+KIFAdditions file, line 71:

[self setIsTap:YES];

If I remove that line, the tests start working as they do on iOS 14. Could that change be included in a PR to avoid this issue on iOS 15?

dostrander commented 3 years ago

@emanueluayza Thanks for pointing this out and taking care of this, it was just merged

PawelMichalak-TomTom commented 3 years ago

Hi. Is there a plan to release this fix in new Cocoapods? I can't go through testing on Xcode13 without it and iOS15 is just around the corner. Thx.

dostrander commented 3 years ago

Sorry about that. I will create a release today

PawelMichalak-TomTom commented 3 years ago

@dostrander Wow, that would be awesome. Thanks!

dostrander commented 3 years ago

Just published

PawelMichalak-TomTom commented 3 years ago

Excelent! I've already integrated and got it working with build. Thanks again @dostrander for a quick fix!