Unable to add files to multiple different targets using an Xcode .fileTemplate

Originator:frank.courville
Number:rdar://FB9725680 Date Originated:
Status: Resolved:
Product:Xcode Product Version:
Classification: Reproducible:
 
When creating a new file using Xcode’s “New -> File…” dialogue, it would be wonderful to create both a Swift file and its accompanying tests file using a single .filetemplate entry. Currently, this seems to be impossible because we would have to add the Swift file to the application target, and the tests file to the tests target, which does not seem to be currently supported.

Aside from efficiency, there is another key reason why this change would be useful: it would consistently name both the code file and the tests file so that counterparts in the assistant editor would work correctly.

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!