@PhonJac your LaunchAppIntent must included in main target
Post
Replies
Boosts
Views
Activity
@Mr. Jefferson
I solved the problem.
because your Intent openAppWhenRun = true, so the intent must be included in both the main target and the widget target
@sebj Try set 「Enable Debug Dylib Support」 to NO
@fehners My solution works with LiveActivityIntent because it will perform in app process.
one more thing, intent struct must be marked public, else in release mode(debug mode is well), system cannot find your intent.
I found a better solution for interaction Live Activity.
You can create a struct impletion LiveActivityIntent then add it to widget target and app target.
Create two files, one add to widget target, other one add to app target, each extension your Intent and write one same function. Widget target function can empty, app target function is real code. In perform call your function in extensions file.
Above steps make sure compile success and when interaction intent, System will execute your real code in App Process.