XCUIElementQuery.matching(_:identifier:) crashes for nil identifier

Originator:an00na
Number:rdar://38512450 Date Originated:March 15 2018, 2:52 PM
Status:Closed Resolved:in Xcode 10
Product:iOS + SDK Product Version:11.2
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Area:
Xcode

Summary:
Both the type and doc say identifier is optional but it actually crashes for nil identifier. XCUIElementQuery.element(matching:identifier:) has the same issue.

Code: https://mega.nz/#!0T4gULoB!a7LhFceleU1OEpTNMgGo36-EhQrFqz2vsASfpRB6i08

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!