iphone - Copy file to the App Resources directory if debug configuration is selected -
I need to copy some files in the app's resource directory during debug builds. I I'm thinking, but do not know how to build debug build. I have the compiler option of "DEBUG" set.
You can use the run script build step Copy All target settings apply when creating target Are available through your environment in your script.
You can determine which configuration is being created through configuration
environment variable; Where to determine your resource, you can see other environment variables such as BUILT_PRODUCTS_DIR
if you correctly specify the output of your run script build phase, it will only be run when output Should be updated, every time you create.
More information on run script build steps is available here:
Similar work can be done with script build rules, which is useful if you have many resources You want to apply it to: You can create a script build rule that matches your extension (such as * .resource) and create your own copy through the environment variable to make a real copy Bills given in Use the settings and input files if you specify correctly the output of your build rule, then this will only run when its input is newer than its output, every time you create.
More information about script build rules is available here:
Comments
Post a Comment