Search code examples
xcodexcode4xcode4.5

Have file be part of multiple targets by default in Xcode


I have a project with two targets. As I add new files to the project, by default only one target is selected (see screenshot). Can I default to having both targets selected?

Last screen in add file wizard


Solution

  • You could create a library that is built from the shared source files. This would be a third target which could be made a dependency of your present pair of targets.