Add support for dynamic input/output files for Run Script build phases

Originator:jnolen
Number:rdar://19527318 Date Originated:19-Jan-2015 09:19 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.1.1 (6A2008a)
Classification:Feature (New) Reproducible:Not Applicable
 
Summary:
We are generating .m/.h files from java files using J2OBJC, this creates a directory with a nested directory structure that i'm copying into $DERIVED_FILES_DIR.  the problem is that we can't specify output files that aren't known ahead of time.

It would also be nice to be able to specify input files in the same way.

A syntax similar to make would be great

Script:

#generate files and copy to $DERIVED_FILES_DIR/gen

Input Files:
/a/source/directory/%.java

Output Files
${DERIVED_FILES_DIR}/gen/%.h
${DERIVED_FILES_DIR}/gen/%.m

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Xcode 6.1.1 (6A2008a)

Notes:
http://stackoverflow.com/questions/4965077/automatically-adding-generated-source-files-to-an-xcode-project

http://stackoverflow.com/questions/1371351/add-files-to-an-xcode-project-from-a-script

Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!