kif-framework / KIF

Keep It Functional - An iOS Functional Testing Framework
Other
6.2k stars 909 forks source link

tapScreenAtPoint not working on ios14 #1198

Open Alderon86 opened 3 years ago

Alderon86 commented 3 years ago

I just discovered that tapScreenAtPoint just crashes my app on iOS14.

im using self.viewTester().tapScreen(at: CGPoint(x:x, y:y))

any suggestions where to look at to resolve that problem?

Edit:

Here is why its crashing:

Uncaught exception: NSInvalidArgumentException: -[UITouch _setIsFirstTouchForView:]: unrecognized selector sent to instance 0x12baab030

Edit2:

Commenting out these two lines made it work again

    [self _setIsFirstTouchForView:YES];
    [self setIsTap:YES];
dostrander commented 3 years ago

@Alderon86 which version of the framework are you using? This should have been fixed here with #1153

Alderon86 commented 3 years ago

@dostrander I think its 3.7.8 newer version are insta crashing my app but haven't looked into the reason that much

dostrander commented 3 years ago

When you get a chance could you give us a backtrace on what is happening?

Alderon86 commented 3 years ago

@dostrander ofc I will, we just hit another lockdown here so I guess I have plenty of time the next days