Invalid Intent Info.plist contains an invalid intent

I am stuck with this problem and have spent hours on fixing but so far no progress.

It works well when i install app via xCode. But when i upload Archive with App Store Connect I got this:

Invalid Intent. The '***.app/PlugIns/IntentsExtension.appex' Info.plist contains an invalid intent 'INDisplayPropertyValuelntent'. Remove the 'INDisplayPropertyValueIntent' intent from both the IntentsSupported and IntentsRestrictedWhileLocked arrays.

Removing the intent from the plist as suggested the app does not work anymore.

Here is my Info.plist:

<dict>
    <key>NSExtension</key>
    <dict>
        <key>NSExtensionAttributes</key>
        <dict>
            <key>IntentsRestrictedWhileLocked</key>
            <array/>
            <key>IntentsRestrictedWhileProtectedDataUnavailable</key>
            <array/>
            <key>IntentsSupported</key>
            <array>
                <string>INDisplayPropertyValueIntent</string>
            </array>
        </dict>
        <key>NSExtensionPointIdentifier</key>
        <string>com.apple.intents-service</string>
        <key>NSExtensionPrincipalClass</key>
        <string>$(PRODUCT_MODULE_NAME).IntentHandler</string>
    </dict>
</dict>

Can you explain what targets you have, and also which files are in each target, please?

In my app I had such a struggle with the intents, and I ended up using these targets:

  • Main App, which contains no supported intents, though there is a space for them in the General tab of the target.
  • Widget, which has no "Supported Intents" section.
  • WidgetIntentHandler, containing both of my intents.
  • Watch App, containing the ComplicationIntentHandler.
  • Complications, which has no "Supported Intents" section.
  • ComplicationsIntentHandler, containing the ComplicationIntentHandler.

This worked for me. If you aren't using a Watch App you can ignore the last three.

The main app does not have supported intents, only the IntentsExtension does. Please have a look at the configuration below... Any suggestions?

Invalid Intent Info.plist contains an invalid intent
 
 
Q