tulsi icon indicating copy to clipboard operation
tulsi copied to clipboard

Support setting "Siri Intent Query" from an Intents app extension scheme

Open thii opened this issue 3 years ago • 4 comments

A normal Xcode scheme for an Intents app extension has this option, while the Tulsi generated one doesn't.


Normal Xcode scheme

Screen Shot 2021-03-17 at 13 18 39

Tulsi generated scheme

Screen Shot 2021-03-17 at 13 17 38

thii avatar Mar 17 '21 04:03 thii

If you diff that scheme with a normal one is there a clear section that it's missing? I feel like I debugged this for XcodeGen in the past

keith avatar Mar 18 '21 01:03 keith

If the field is empty, there's no difference. If it's not empty, this setting is added to the LaunchAction section:

      intentQueryString = "Send Hi via App"

But manually adding that doesn't make that field show up. Xcode seems to also look at somewhere else.

thii avatar Mar 18 '21 02:03 thii

Yes, I also met this problem. when I change the Executable to Ask on Launch, the will not display Intent Query String on UI, and it will force to select myApp.app to run, the will lead to can't run Siri success. I've took 2 hours with my colleague, no progress on this.

my config as below:

...
schemes:
  xxxSiriExtension:
    build:
      targets:
        xxx-project: all
    run:
      config: debug
      commandLineArguments: 
        "DEBUG_BLOCK": true
      intentQueryString: 'Show my agenda'
      askForAppToLaunch: true
...

  xxxSiriExtension:
    type: app-extension
    deploymentTarget: 13.0
    templates:
      - ExtensionIntentsTemplate
    platform: iOS
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: com.xxx.xxx.xxx.Siri
        INFOPLIST_FILE: xxxSiriExtension/info.plist
    sources:
      - path: xxxSiriExtension

but it is not working when I run xcodegen to run my project. @DavidGoldman @ivanhernandez13 @dmishe

Jeremy-JM avatar Oct 29 '21 08:10 Jeremy-JM

If the field is empty, there's no difference. If it's not empty, this setting is added to the LaunchAction section:

      intentQueryString = "Send Hi via App"

But manually adding that doesn't make that field show up. Xcode seems to also look at somewhere else.

If the field is empty, there's no difference. If it's not empty, this setting is added to the LaunchAction section:

      intentQueryString = "Send Hi via App"

But manually adding that doesn't make that field show up. Xcode seems to also look at somewhere else.

Do you have any solution for this? @thii

Jeremy-JM avatar Nov 02 '21 07:11 Jeremy-JM

Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration.

keith avatar Feb 15 '23 17:02 keith