Is there a quick way to synchronize two (or more) targets in Xcode? This becomes an issue when I forget to add a new file to my unit test & integration target. Then I have to go hunting to see what I forgot to add. I can duplicate my "development" target and then re-add the "unit testing" configuration, but that's a pain. Is there an easier way?
EDIT:
I like John's answer below but ultimately I used the answer from here, that involves manually editing the project file. With multiple missing files that was the quickest way.
your question focuses on the case where you are adding a single file to a target, and forget to check both boxes to add it to the target you want.
perhaps you mean that it is a pain to use the identity inspector, but i think this is a handy way to add in one file that i didn't properly get added to a second target. you can get to the identity inspector by first clicking on the file for which you want to inspect information, and then using Cmd-Opt-1, and then clicking the rightmost tab. notice near the bottom that for me, both targets are checked. for you, in the case of a file that didn't get added to both targets, one will be unchecked.
in the case of not remembering which files you added recently to a target:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With