Using LAError gives warnings

Originator:skagedal
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
 
Summary:
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

Version:
Xcode 10.0 beta (10L176w)

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

https://stackoverflow.com/questions/46455424/touchidlockout-deprecated-in-ios-11-0

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

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!