- Notifications
You must be signed in to change notification settings - Fork 548
CoreNFC MacCatalyst xcode26.0 b1
Rolf Bjarne Kvinge edited this page Aug 5, 2025 · 4 revisions
#CoreNFC.framework https://github.com/dotnet/macios/pull/23481
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h 2025-04-19 00:46:45 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h 2025-05-24 04:01:41 @@ -27,4 +27,5 @@ #import <CoreNFC/NFCNDEFPayload.h> #import <CoreNFC/NFCNDEFMessage.h> #import <CoreNFC/NFCVASReaderSession.h> +#import <CoreNFC/NFCPaymentTagReaderSession.h> #endif diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h 2025-04-19 00:46:46 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h 2025-05-24 06:14:41 @@ -50,7 +50,8 @@ NFCReaderErrorInvalidParameterLength API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos), NFCReaderErrorParameterOutOfBound API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos), NFCReaderErrorRadioDisabled API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos), - + NFCReaderErrorIneligible API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos), + NFCReaderTransceiveErrorTagConnectionLost API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos) = 100, NFCReaderTransceiveErrorRetryExceeded API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos), NFCReaderTransceiveErrorTagResponseError API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos), diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h 2025-04-19 00:46:46 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h 2025-05-24 04:01:41 @@ -9,6 +9,7 @@ #import <Foundation/Foundation.h> + @protocol NFCReaderSessionDelegate; NS_ASSUME_NONNULL_BEGIN diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h 2025-04-19 04:17:25 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h 2025-05-24 04:01:42 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + NS_ASSUME_NONNULL_BEGIN @class NFCTagCommandConfiguration; diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h 2025-04-19 00:46:46 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h 2025-05-24 04:01:42 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + NS_ASSUME_NONNULL_BEGIN @class NFCNDEFPayload; diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h 2025-04-19 04:17:25 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h 2025-05-24 06:57:43 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + NS_ASSUME_NONNULL_BEGIN /*! diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h 2025-04-19 04:30:32 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h 2025-05-24 06:57:44 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + @class NFCReaderSession; @class NFCNDEFReaderSession; @class NFCNDEFMessage; diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h 1969-12-31 19:00:00 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h 2025-05-24 04:01:42 @@ -0,0 +1,58 @@ +// +// NFCPaymentTagReaderSession.h +// CoreNFC +// +// Copyright © 2025 Apple. All rights reserved. +// + +#ifndef NFCPaymentTagReaderSession_h +#define NFCPaymentTagReaderSession_h + +#import <Foundation/Foundation.h> +#import <CoreNFC/NFCTagReaderSession.h> + + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Payment tag reader session + +/*! + * @class NFCPaymentTagReaderSession + * + * @discussion Reader session for processing NFC payment tags supporting the @link NFCTagTypeISO7816Compatible @link/ type. + * @link [NFCTagReaderSessionDelegate readerSession:didDetectTags:] @link/ will return a @link NFCISO7816Tag @link /. object. + * This session requires the "com.apple.developer.nfc.readersession.formats" entitlement in your process. + * In addition your application's Info.plist must contain a non-empty usage description string. @link NFCReaderErrorSecurityViolation @link/ will be + * returned from @link [NFCTagReaderSessionDelegate tagReaderSession:didInvalidateWithError:] @link/ if the required entitlement is missing when session is started. + * + * When the reader discovers a compatible ISO7816 tag it automatically performs a SELECT command (by DF name) using the values provided in + * "com.apple.developer.nfc.readersession.iso7816.select-identifiers" in the specified array order. The tag is + * returned from the [NFCTagReaderSessionDelegate readerSession:didDetectTags:] call on the first successful SELECT command. + * The initialSelectedAID property returns the application identifier of the selected application. Tag will not be returned + * to the NFCTagReaderSessionDelegate if no application described in "com.apple.developer.nfc.readersession.iso7816.select-identifiers" + * is found. + * + * NOTE: + * - Only one NFCReaderSession can be active at any time in the system. Subsequent opened sessions will get queued up and processed by the system in FIFO order. + */ +API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos) +@interface NFCPaymentTagReaderSession : NFCTagReaderSession +/*! + * @method initWithDelegate:queue: + * + * @param delegate The session will hold a weak ARC reference to this @link NFCTagReaderSessionDelegate @link/ object. + * @param queue A dispatch queue where NFCTagReaderSessionDelegate delegate callbacks will be dispatched to. A <i>nil</i> value will + * cause the creation of a serial dispatch queue internally for the session. The session object will retain the provided dispatch queue. + * + * @return A new NFCPaymentTagReaderSession instance. + * + * NOTE: + * The super class `-initWithPollingOption:delegate:queue:` initializer would only accept NFCPollingOption.NFCPollingISO14443; all other options will be ignored. + */ +- (instancetype)initWithDelegate:(id<NFCTagReaderSessionDelegate>)delegate + queue:(nullable dispatch_queue_t)queue API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, macos, tvos, visionos) NS_EXTENSION_UNAVAILABLE("Not available to extensions"); +@end + +NS_ASSUME_NONNULL_END + +#endif /* NFCPaymentTagReaderSession_h */ diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h 2025-04-19 04:30:32 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h 2025-05-24 04:01:42 @@ -11,6 +11,7 @@ #import <Foundation/Foundation.h> #import <dispatch/dispatch.h> + NS_ASSUME_NONNULL_BEGIN @class NFCReaderSession; diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h 2025-04-19 04:30:32 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h 2025-05-24 04:01:42 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + NS_ASSUME_NONNULL_BEGIN /*! diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h 2025-04-19 04:17:25 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h 2025-05-24 06:14:41 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + NS_ASSUME_NONNULL_BEGIN @protocol NFCTag; diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h --- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h 2025-04-19 04:30:32 +++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h 2025-05-24 06:14:41 @@ -10,6 +10,7 @@ #import <Foundation/Foundation.h> + NS_ASSUME_NONNULL_BEGIN @class NFCReaderSession;