|Dec 15, 2013, 08:42 AM||#1|
Xcode build phase - unknown number of input files to unknown number of output files
In an Xcode 5 project of mine, I have a folder with a set of input files. The number of input files is unbounded, and there may be subdirectories in this input folder. I have a script takes every file in this input folder and generates a set of output files that go into a second folder. Each output file does not directly map to any of the input files. This output folder needs to end up in my application's Resources folder.
What I've been doing so far is including the output folder in my project as a folder reference (the input folder doesn't have such a project reference). I have a Run Script build phase that runs my script to generate the output files from the input files, and a Copy Bundle Resources phase that copies my output folder.
It doesn't feel terribly clean to reference the output folder directly in my project. Also, the "Input Files" and "Output Files" lists of the Run Script build phase only works with individual known files, which I don't have, so the (lengthy) script runs every time I run my project.
Would there be a better way to handle these input and output files in Xcode's build process?
|build phase, xcode, xcode 5|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|iPhone 5 Unknown Number - Can't activate iMessage/FaceTime||DoctorKrabs||iPhone Tips, Help and Troubleshooting||0||Mar 28, 2014 06:22 PM|
|Carrier: Mobile Data Number Unknown||Rich74||iPad||2||Dec 23, 2013 02:41 AM|
|My Number: Unknown||MM125||iPhone Tips, Help and Troubleshooting||2||Sep 11, 2013 03:39 PM|
|Input/Output with files in XCode||crisro996||Mac Programming||2||Jul 21, 2012 12:20 PM|
|Unknown Number?||johnificent||Jailbreaks and iOS Hacks||6||Jun 15, 2012 02:56 PM|
All times are GMT -5. The time now is 09:04 PM.