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.
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?
해결책
제휴하지 않습니다 StackOverflow