Use XcodeProjectPlugin command plugin to generate file AND register it with Xcode

I have a command plugin that can successfully generate files and put them into by an Xcode project folder where I want them to be. It is a twin to a ProjectPlugin that does a similar task.

Currently I manually add the generated files to the project using using "File > Add Files to..."

That isn't that hard, but is there a way to add the file to the project programmatically? It would be handy to make it more on par with the end state of running the command on a package.

Thanks!

Use XcodeProjectPlugin command plugin to generate file AND register it with Xcode
 
 
Q