Using LAError gives warnings

Number:rdar://41085165 Date Originated:13-Jun-2018 03:02 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:Xcode 10.0 beta (10L176w)
Classification:Serious Bug Reproducible:Always
By simply referencing the LAError type, Xcode shows warnings that you can’t get rid of.

Steps to Reproduce:
Create a new iOS project, import LocalAuthentication, include any reference of LAError such as:

func foo(_ error: LAError) {

Expected Results:
Compile without warning

Actual Results:
<unknown>:0: warning: 'touchIDNotAvailable' was deprecated in iOS 11.0: use LAErrorBiometryNotAvailable
<unknown>:0: warning: 'touchIDNotEnrolled' was deprecated in iOS 11.0: use LAErrorBiometryNotEnrolled
<unknown>:0: warning: 'touchIDLockout' was deprecated in iOS 11.0: use LAErrorBiometryLockout

Xcode 10.0 beta (10L176w)

I found this StackOverflow which mentions the issue and radar #36028653

Confirming that this is still an issue in Xcode 12.0 beta.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!