I’ve done a screenshot to show where it is in Xcode, because it’s easier 🙂
- Select project file
- Select the target you want
- Go to Build Settings
- Search for ‘preprocessor’
- Add your preprocessor macro either for Debug, Release, or both.
More Related Contents:
- How do I specify multiple targets in my podfile for my Xcode project?
- Swift: how to use PREPROCESSOR Flags (like `#if DEBUG`) to implement API keys?
- TableViewCell in Swift?
- Xcode “Build and Archive” from command line
- Xcode 10 Error: Multiple commands produce
- How do I print a list of “Build Settings” in Xcode project?
- Using Git with an existing Xcode project
- Duplicate and rename Xcode project & associated folders [closed]
- how to resize a bitmap on iOS
- Localizing in Xcode 4 with Localizable.String
- Installing Apple’s Network Link Conditioner Tool
- Cocoapods with Xcode 6 and 10.10 Yosemite
- React Native / Xcode Upgrade and now RCTConvert.h not found
- Renaming xcode 4 project and the actual folder
- How can I use .xcconfig files in Xcode 4?
- How to upload dmg file for notarization in xcode
- Setting GCC 4.2 as the default compiler on Mac OS X Leopard
- How to fix “SWIFT_VERSION ‘3.0’ is unsupported, supported versions are: 4.0, 4.2, 5.0” error in Xcode 10.2?
- Compile OpenCV (2.3.1+) for OS X Lion / Mountain Lion with Xcode
- Redundant conformance error message Swift 2
- error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65
- How to disable Xcode4.2 Automatic Reference Counting
- How do you update Xcode on OSX to the latest version?
- How to get .app file of a xcode application
- Xcode 4 code sense is not working
- No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)
- iAd in xcode 6 with Swift
- Unable to load Info.plist error Xcode 10 under macOS 10.14 Mojave
- How do you add a breakpoint in Xcode?
- What does it mean when you check on “Recursive” in Header Search Paths