Adding files and selecting multiple targets in Xcode

I have over 200 projects in my Xcode, and when I add a new file or class, I have to select each one one at a time to add it to it. Is there a way to select multiple goals instead?

enter image description here

+5
source share
2 answers

I'm not sure, but try selecting the first one, scroll down and holding down “Shift” select the last one. Alternatively, this can work with the "Cmd" button.

0
source

Try the awesome AllTargets Xcode by poboke plugin available on Github (works with Xcode 5+).

enter image description here

Manual assembly and installation

  • Download the source code and open AllTargets.xcodeproj with Xcode.
  • Select "Edit Scheme" and set "Build Configuration" to "Release"
  • Build it. It automatically installs the plugin in the correct directory.
  • Restart Xcode. (Make sure the Xcode process is complete)

Manual removal

Delete the following directory:

$HOME/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/AllTargets.xcplugin 

A tutorial on how the plugin was created (Chinese).

0
source

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


All Articles