Greetings, I did get this working, thanks Ed. I didnt fully understand that I needed 2 AppIntentsPackage, one in the framework and one in the main project.
This project used it and reading their code was helpful:
https://github.com/ztzhang/locked_capture_example
Here is the one in the framework:
https://github.com/ztzhang/locked_capture_example/blob/main/MyIntentFramework/AppIntentsPackage.swift
And here is the one in the main project, including that one in the framework:
https://github.com/ztzhang/locked_capture_example/blob/main/AVCam/AppIntents.swift
And then a bonus one because they had an extension where they also had an intent:
https://github.com/ztzhang/locked_capture_example/blob/main/ControlButtonExtension/AppIntents.swift
As for my other issue with "This current action is not allowed", I still havent been able to reproduce it in a smaller project unfortunately, there is seem to work, but its also a lot simpler. So I'm still looking for a solution for that.
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: