How to handle autogenerated files in XCode

Hi,

It seems that the files that are added to a targets compilation list cannot be hardcoded. If the file doesn't exist in the file system then it cannot be added to the compilation list. If this is true then how are autogenerated files handled in Xcode.

I want to autogenerate some code but since I can't add those files in to the project, the first compilation (that generates those files) always fails. This is especially problem in CI.

How is I should handle this in Xcode

How to handle autogenerated files in XCode
 
 
Q