zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 175 forks source link

Running error on Xcode11 #89

Closed jaderYang closed 4 years ago

jaderYang commented 4 years ago

This library has worked very well on xcode10 in the past year. But recently Apple requested that all App need to be packaged with xcode11. I found monkey test runs error on xcode11.

Error message: Failed to get matching snapshots: Timed out snapshotting com.apple.testmanagerd, app is either unresponsive or taking too long to snapshot. Here is my code ` let application = XCUIApplication() _ = application.descendants(matching: .any).element(boundBy: 0).frame let monkey = Monkey(frame: application.frame) monkey.addDefaultUIAutomationActions() monkey.addXCTestTapAlertAction(interval: 100, application: application)

    monkey.monkeyAround(iterations: 1000)

`

I tried the method mentioned on #83, but it didn't work.

Could you help me to check it? Thanks a lot.