Skip to content

LocalAuthentication macOS xcode13.0 rc

Alex Soto edited this page Sep 14, 2021 · 1 revision

#LocalAuthentication.framework

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2021-08-07 05:22:49.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2021-08-03 21:52:29.000000000 -0400
@@ -20,7 +20,7 @@
     ///
     ///             Touch ID authentication dialog contains a cancel button with default title "Cancel"
     ///             which can be customized using localizedCancelTitle property, and a fallback button with
-    ///             default title "Use Password…" which can be customized using localizedFallbackTitle
+    ///             default title "Use Password..." which can be customized using localizedFallbackTitle
     ///             property. Clicking either button causes evaluatePolicy call to fail, returning a distinct
     ///             error code: LAErrorUserCancel or LAErrorUserFallback.
     ///
@@ -93,8 +93,7 @@
 ///              contains error information if policy evaluation is not possible.
 ///
 /// @return YES if the policy can be evaluated, NO otherwise.
-- (BOOL)canEvaluatePolicy:(LAPolicy)policy error:(NSError * __autoreleasing *)error
-    NS_SWIFT_NOTHROW
+- (BOOL)canEvaluatePolicy:(LAPolicy)policy error:(NSError * __autoreleasing *)error __attribute__((swift_error(none)))
     API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
 
 /// Evaluates the specified policy.
@@ -144,7 +143,6 @@
 - (void)evaluatePolicy:(LAPolicy)policy
        localizedReason:(NSString *)localizedReason
                  reply:(void(^)(BOOL success, NSError * __nullable error))reply
-    NS_SWIFT_ASYNC_THROWS_ON_FALSE(0)
     API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
 
 /// Invalidates the context.
@@ -271,16 +269,15 @@
                     operation:(LAAccessControlOperation)operation
               localizedReason:(NSString *)localizedReason
                         reply:(void(^)(BOOL success, NSError * __nullable error))reply
-                        NS_SWIFT_ASYNC_THROWS_ON_FALSE(0)
                         API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// Fallback button title.
 /// @discussion Allows fallback button title customization. If set to empty string, the button will be hidden.
-///             A default title "Use Password…" is used when this property is left nil.
+///             A default title "Use Password..." is used when this property is left nil.
 @property (nonatomic, nullable, copy) NSString *localizedFallbackTitle API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
 
 /// This property is deprecated and setting it has no effect.
-@property (nonatomic, nullable) NSNumber *maxBiometryFailures API_DEPRECATED("No longer supported", ios(8.3, 9.0), macos(10.10.3, 10.11)) API_UNAVAILABLE(watchos, tvos);
+@property (nonatomic, nullable) NSNumber *maxBiometryFailures NS_DEPRECATED_IOS(8_3, 9_0) __WATCHOS_UNAVAILABLE __TVOS_UNAVAILABLE;
 
 /// Cancel button title.
 /// @discussion Allows cancel button title customization. A default title "Cancel" is used when
@@ -348,7 +345,6 @@
     
     /// The device supports Face ID.
     LABiometryTypeFaceID API_AVAILABLE(macos(10.15)),
-
 } API_AVAILABLE(macos(10.13.2), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
 
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h	2021-08-09 03:26:25.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h	2021-08-03 21:52:29.000000000 -0400
@@ -72,9 +72,5 @@
     /// Authentication could not start because this device supports biometry only via removable accessories and the paired accessory is not connected.
     LAErrorBiometryDisconnected API_AVAILABLE(macos(11.2)) API_UNAVAILABLE(ios, watchos, tvos) = kLAErrorBiometryDisconnected,
 
-    /// Authentication could not start because dimensions of embedded UI are invalid.
-    LAErrorInvalidDimensions
-    API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos) = kLAErrorInvalidDimensions,
-
 } API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
 
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h	2021-07-30 05:26:53.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h	2021-03-16 04:44:15.000000000 -0400
@@ -36,7 +36,7 @@
 #define kLAErrorBiometryLockout                             kLAErrorTouchIDLockout
 #define kLAErrorBiometryNotPaired                         -12
 #define kLAErrorBiometryDisconnected                      -13
-#define kLAErrorInvalidDimensions                         -14
+
 
 // Error domain
 #define kLAErrorDomain        "com.apple.LocalAuthentication"
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h	2021-07-30 05:26:53.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h	2021-03-16 04:44:15.000000000 -0400
@@ -8,4 +8,3 @@
 #import <LocalAuthentication/LABase.h>
 #import <LocalAuthentication/LAContext.h>
 #import <LocalAuthentication/LAError.h>
-#import <LocalAuthentication/LAPublicDefines.h>
Clone this wiki locally