Oh wow thanks, I was trying in "Other C Flags" and "Other Swift Flags". Just tried again using User-Defined Settings and it now works. It needs to be added to any target which imports AppIntents.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: