@jbenavidesv good findings - but for me it still hasn't changed things.
Are you sure there isn't something more you did?
Let me run quickly though my current setup:
Info.plist:
Entitlements:
And runtime:
guard
let app: ShortcutsEvents = SBApplication(bundleIdentifier: "com.apple.shortcuts"),
let shortcuts = app.shortcuts else { throw "error" }
print("getting short")
guard let shortcut = shortcuts.object(withName: name) as? Shortcut else { throw "error" }
print("running short", shortcut)
let res = shortcut.run?(withInput: input)
print("shotcut result", res ?? "nil")
Topic:
App & System Services
SubTopic:
Core OS
Tags: