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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top