title: How do I get the name of the target that is currently running in Xcode?
body: <p>I have an Xcode project with several targets. Let's say the target names are <code>AppFreeVersion</code> and <code>AppPaidVersion</code>. They share the same codebase, but I want to implement some logic that is only for one of the targets.</p>
  
  <p>Without modifying my scheme or build settings, is there a way to get the string of my current target name? The solution given <a href="https://stackoverflow.com/q/6964630/361247">in this question</a> requires me to pass an environment variable in the build setting, which I don't want to do.</p>