How can I add dynamic referances in compile resources?

40 Views Asked by At

I have a Python script that generates various ".swift" files. I also have "Build-Phases" such that resources.py generates different ".swift" files in the same folder

Build Phase look like this:

enter image description here

I've created a .xcfilelist file, and when the script runs, I write the file names into the .xcfilelist. The .xcfilelist looks like this:

enter image description here

Afterwards, I've added the Output Files in the build phases script. It looks like:

enter image description here

When the script finishes running, files should be added to the compile resources, but they are not being included properly.

Where i do mistake? How can i add files in to compile resources?

0

There are 0 best solutions below