Xcode preprocessor definitions (not per project) -


I have to have preprocessor definitions for each machine with encoded, so no matter which project I will open, There will be some definitions. In the first office, I want to know that

  #define SERVER_IP 10.20.10.20  

in another office

  # Define SERVER_IP 192.168.10.20  

etc ...

So the projects are exactly the same, only those encoded environmental projects will provide those definitions. Is there any such possibility in Xcode?

You can just define a prefix header file and set its name in the Xcode project The contents of the file prefix header file could vary for different offices. Although note that this type of thing is not usually a good idea - you should not embed the settings in your code - use priorities for this type of things.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -