NSExtension Warning

Hi,

I am building a Safari Web Extension and I am seeing this warning in my console:

[NSExtension] Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point’s NSExtensionContext subclass must implement +_allowedItemPayloadClasses. This must return the set of allowed NSExtensionItem payload classes. In future, this request will fail with an error. Extension: <EXConcreteExtension: 0x7f9ca5abe440

I am not sure how to go about this. I have not found any documentation regarding usage of allowedItemPayloadClasses has anyone seen this before?

Are you seeing any issues with your extension?

If you could, please file some feedback at https://feedbackassistant.apple.com, include any effect it has on your extension.

If you aren't seeing any issues with your extension, that should be safe to ignore for now.

Hi,

I'm getting the same warning in combination with ReplayKit. It shows up right at the moment when I stop recording.

Can I ignore it for now as well?

Thanks

Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point's NSExtensionContext subclass must implement +_allowedItemPayloadClasses. This must return the set of allowed NSExtensionItem payload classes. In future, this request will fail with an error. Extension: <EXConcreteExtension: 0x2805d6e80> {id = com.apple.ReplayKit.RPVideoEditorExtension} Items: (

    "<NSExtensionItem: 0x2832f7930> - userInfo: {\n    NSExtensionItemAttachmentsKey =     (\n        "<NSItemProvider: 0x281b17b80> {types = (\n)}"\n    );\n    NSExtensionItemAttributedTitleKey = {length = 343, bytes = 0x7b5c7274 66315c61 6e73695c 616e7369 ... 4e616d65 4b65797d };\n}",

    "<NSExtensionItem: 0x2832f7130> - userInfo: {\n    NSExtensionItemAttachmentsKey =     (\n        "<NSItemProvider: 0x281b15dc0> {types = (\n    \"public.data\"\n)}"\n    );\n    NSExtensionItemAttributedTitleKey = {length = 344, bytes = 0x7b5c7274 66315c61 6e73695c 616e7369 ... 6555524c 4b65797d };\n}",

    "<NSExtensionItem: 0x2832f5f10> - userInfo: {\n    NSExtensionItemAttachmentsKey =     (\n        "<NSItemProvider: 0x281b172c0> {types = (\n    \"public.data\"\n)}"\n    );\n    NSExtensionItemAttributedTitleKey = {length = 352, bytes = 0x7b5c7274 66315c61 6e73695c 616e7369 ... 66696572 4b65797d };\n}"

This code in my app generates those console messages. I suspect that message is a warning to internal iOS developers to adapt to some change or deprecation and for the time being doesn't affect us and nothing we can do about it but not sure. Some of the messages might be related to the data I'm trying to save... I might not have it right.

   @objc func shareButtonPressed() {
        do {
            let filename = title + "-notes"
            let ext = "rtf"
            let rtfURL = try FileManager.default.url(for: .documentDirectory,
                                                      in: .userDomainMask,
                                          appropriateFor: nil,
                                                  create: false) .appendingPathComponent(filename + "." + ext)
            try attrText.rtf().write(to: rtfURL)
            let activityViewController = UIActivityViewController(activityItems: [rtfURL], applicationActivities: nil)
            present(activityViewController, animated: true, completion: {})
        } catch {
            print(error)
        }
    }




> CopresenceCore.Entitlement.publicAPI error nil

2022-05-17 13:12:01.397911-0700 UsefulApp[95056:24788961] [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIActivityContentFooterView: 0x122548330; baseClass = UICollectionReusableView; frame = (20 298; 388 52); layer = <CALayer: 0x6000010c7a20>>

2022-05-17 13:12:01.555156-0700 UsefulApp95056:24789409] [Fetching] LPFileMetadataProviderSpecialization failed to retrieve a thumbnail from QuickLookThumbnailing (Error Domain=QLThumbnailErrorDomain Code=0 "Could not generate a thumbnail")

2022-05-17 13:13:12.303430-0700 UsefulApp[95056:24788961] [NSExtension] Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point's NSExtensionContext subclass must implement `+_allowedItemPayloadClasses`. This must return the set of allowed NSExtensionItem payload classes. In future, this request will fail with an error. Extension: <EXConcreteExtension: 0x60000253c540> {id = com.apple.DocumentManagerUICore.SaveToFiles} Items: (

    "<NSExtensionItem: 0x6000012100a0> - userInfo: {\n    NSExtensionItemAttachmentsKey =     (\n        \"<NSItemProvider: 0x600003b63870> {types = (\\n    \\\"public.rtf\\\",\\n    \\\"public.file-url\\\"\\n)}\"\n    );\n    \"com.apple.UIKit.NSExtensionItemUserInfoIsContentManagedKey\" = 0;\n}"

)

2022-05-17 13:13:23.920403-0700 UsefulApp[95056:24788961] [ShareSheet] cancelled request - error: The operation was cancelled.

2022-05-17 13:13:29.193851-0700 UsefulApp[95056:24790618] [ShareSheet] connection invalidated

Same Error here, plz up!

Happening to me with NSSharingServicePicker

NSExtension Warning
 
 
Q