Sync two goals in Xcode 4

Is there a quick way to sync two (or more) goals in Xcode? This becomes a problem when I forget to add a new file to my unit test and integration goal. Then I have to go hunting to see what I forgot to add. I can duplicate my development goal and then re-add the "unit testing" configuration, but that is a pain. Is there an easier way?

EDIT:

I like that John answered below, but I ended up using the answer here , which includes manually editing the project file. With a few missing files, this was the fastest way.

+6
source share
2 answers

Your question focuses on the case when you add one file to the target, and forget to check both fields to add it to the desired target.

Perhaps you mean that it is painful to use an identity inspector, but I think this is a convenient way to add to a single file that I could not add to the second target. you can contact the identity inspector by first clicking on the file for which you want to verify the information, then using Cmd-Opt-1, and then clicking on the topmost tab. pay attention to the lower part that both goals are checked for me. for you, in the case of a file that is not added to both objects, one will be taken off.

identity inspector

if you don’t remember which files you recently added to the target:

  • If you have a project under source control, you can use View, -> Version Editor β†’ Show Version Editor (or Cmd-Opt-Shift-Return), and you will get a textual XML comparison comparison representing your project , compared to how he looked at the last commit. No matter what’s new, it’s most likely a set of files to view for checkboxes, as shown in the picture above.
  • if not under the source, you can go through the files one by one, although you may be able to use the search engine to sort your source using Date Modified, and go through the memory of the file you added, then go straight to that. in terms of transition one by one, as soon as the identity inspector is open, you just have to click on the first file in the list, then use the down arrow to view all the files and see which ones are the desired set of goals and which aren't.
+5
source

Copy the secondary target folder with all its files to the main target folder. Then just drag the secondary xcodeproj target to the main one in xcode.

-1
source

Source: https://habr.com/ru/post/917907/


All Articles