title: Is it possible to script adding a directory of source files into an Xcode project for compile?
body: <p>As part of our Unity build process we drag and drop a directory of C source files which are generated by the Unity IDE into our iOS XCode project. We want XCode to "Create groups" for the files because the header files don't seem to be recognized by the compiler when using "Create folder references". </p>
  
  <p>I'm wondering if there's a way to script this so we don't have to manually drag the directories into XCode each time. Adding a "Copy Files" build phase only seems to work if I choose "Create folder references". When I choose "Create groups", the "Copy Files" section remains empty. Is this a bug in XCode or am I doing something wrong? I'm using XCode 9.1.  </p>
  
  <p>I know Apple recommends creating a framework rather than copying in a directory of source files. The reason we can't do that is because we're relying on the Unity build process which gives us a bunch of C source files. Thanks!</p>