XCUISystem open URL scheme bypasss the system dialog

I have some trouble to use this API https://developer.apple.com/documentation/xctest/xcuisystem/4108234-open in UI testing.

Calling this API that opens my app but a system dialog Open in "MyApp" will show.

XCUIDevice.shared.system.open(url) is a sync API, so I can't use my test to tap on the "Open" button on the dialog.

This basically makes the API unusable, are there some way to bypass this system dialog?

Post not yet marked as solved Up vote post of Yuantong Down vote post of Yuantong
911 views

Replies

There are two known issues with these new APIs which we are hoping to have fixed soon.

More details at the bottom of the following thread: https://developer.apple.com/forums/thread/25355