yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.01k stars 818 forks source link

Add intent definition to multiple targets #1367

Open fousa opened 1 year ago

fousa commented 1 year ago

I have a Home Screen widget that uses intents to make it configurable. But in order to allow these intents to do their job it needs to be added to both the widget target as the main application's target.

Is there a way to do this with xcodegen? Or is this functionality missing to add a file manually to the compile sources build phase of another target.

Keep up the good work!

yonaskolb commented 1 year ago

Hi @fousa. Sure you can reference the same files from both target's sources