How to define a preprocessor symbol in Xcode

前端 未结 8 1881
旧巷少年郎
旧巷少年郎 2020-11-27 10:32

Is it possible to set a symbol for conditional compilation by setting up properties in an Xcode project?

My aim is to to create a symbol that is available to all fil

8条回答
  •  旧巷少年郎
    2020-11-27 11:20

    You can use the *_Prefix.pch file to declare project wide macros. That file is usually in you Other Sources group.

提交回复
热议问题