I have a file created by a script that runs during the build phase. Therefore, the file does not exist until build time.
How to add a file to an application / project so that my code can access it at runtime?
I know what the file name will be.
Usually, if I created the file manually, I just dragged it into Xcode and I can immediately access it using the file name in the code. Since I create the file at build time, I want to know how to add it to my project.
EDIT: The file I am adding is an image file created by a script during the build phase. I want to have access to this file at runtime in my product.
source share