yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
6.92k stars 811 forks source link

Issue with Siri Intents + Siri Intents UI #738

Open chc24 opened 4 years ago

chc24 commented 4 years ago

I've been able to use XcodeGen to create a today extension, but when I create another target with app-extension.intents-service, the info-plist fails to generate and the extension is not recognized as an intents extension. Here is what my target looks like, and i've embedded this into the container app as follows:

targets:
  ExtensionIntents:
    type: app-extension.intents-service
    deploymentTarget: 11.0
    platform: iOS
    templates:
      - ExtensionIntentsTemplate
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: co.project.Intents
        INFOPLIST_FILE: Info/Extensions/ExtensionIntentsInfo.plist
    sources:
      - path: Intents
Main App:

MainApp:
  [...]
  dependencies:
      - target: IntentsExtension
         embed: true
        codeSign: false
        buildPhase:
          copyFiles:
            destination: plugins

And yes, an info.plist does exist at that path. When I create the intents target manually through xcode, everything looks good, but for my use case this extension needs to be regenerated every time.

chc24 commented 4 years ago

Link to older issue: https://github.com/yonaskolb/XcodeGen/issues/623