Is there any way to determine whether the Objesi Linker flag is set with the code? I'm looking for something like this:
  #ifdef ObjCICFALG NSLog (@ "- The Objesi Linker flag is set."); #endif   
No, there is no way to check this in the code. However, you can add a custom "run script" build step that executes a script before the "compile source" build step (see below).
In the script you can get the build setting variable and check it.
EDIT: If you want to "return" with an error, then extract the script without the zero-zero variable, such as
  exit -1 < / Code> >  Otherwise, if the build setting meets your needs:> build revenue. 
  A bash script can be written to: 
   If [[$ $ OTHER_LDFLAGS] == * -ObjC *]] exit again 0 and "Linker flag - ObjC "exit -1f  
   
 
 
Comments
Post a Comment