title: How to get Target name?
body: <p>We know that Xcode maintains environment variable of <code>${TARGET_NAME}</code> but how to access this variable in objective-C code ?</p>
  
  <p>What I have tried ?<br>
  I have added <code>"TARGET_NAME=${TARGET_NAME}"</code> this in Preprocessor macros section of Build Settings. But now I am not sure how to use this variable <code>"TARGET_NAME"</code> as a string in objective-C code. <br><p>
  In my case product name and target name are different so, no chance to use that.</p>
  
  <p>I tried to access using <br></p>
  
  <pre><code>#ifdef TARGET_NAME
   NSLog(@"TargetIdentifier %@",TARGET_NAME);
  #endif
  </code></pre>
  
  <p>This code is giving error like "Use of undeclared identifier 'myapptargetname'"</p>