Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Files and Select Multiple Targets in Xcode

Tags:

xcode

I have over 200 projects in my XCode and when I add a new file or class I have to select each target one by one to add it to it. Is there a way to select multiple targets instead?

enter image description here

like image 808
Mike Flynn Avatar asked Oct 30 '22 14:10

Mike Flynn


1 Answers

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

enter image description here

Manual build and install

  1. Download source code and open AllTargets.xcodeproj with Xcode.
  2. Select "Edit Scheme" and set "Build Configuration" as "Release"
  3. Build it. It automatically installs the plugin into the correct directory.
  4. Restart Xcode. (Make sure that the Xcode process is terminated entirely)

Manual uninstall

Delete the following directory:

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

↳ Tutorial on how the plugin was created (Chinese).

like image 193
l'L'l Avatar answered Nov 15 '22 08:11

l'L'l