zalando / SwiftMonkey

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

Running error on xcode 11 #90

Open jaderYang opened 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.

sea516 commented 4 years ago

same issue here, can anyone have a look?