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.
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?
- How to Empty Caches and Clean All Targets Xcode 4 and later
- How to download Xcode DMG or XIP file?
- New warnings in iOS 9: “all bitcode will be dropped”
- Safe (bounds-checked) array lookup in Swift, through optional bindings?
- Change templates in Xcode
- What is a StoryBoard ID and how can I use this?
- How to update Xcode from command line
- How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?
- How to “Delete derived data” in Xcode?
- Where is Xcode’s build folder?
- IBOutlet is nil, but it is connected in storyboard, Swift
- Determining the available amount of RAM on an iOS device
- Xcode: code loses syntax coloring
- Xcode 4 – slow performance
- iPhone Debugging: How to resolve ‘failed to get the task for process’?
- What is TIC Read Status 1:57 in iOS11/Xcode 9?
- How to downgrade Xcode to previous version?
- Download & Install Xcode version without Premium Developer Account [duplicate]
- GFortran error: ld: library not found for -lSystem when trying to compile
- Creating NSData from NSString in Swift
- Xcode Provisioning Profiles Location
- @autoreleasepool without ARC?
- How to fully remove Xcode 4
- Codesign of Dropbox API fails in Xcode 4.6.3: “code object is not signed at all”
- Permanently configuring LLDB (in Xcode 4.3.2) not to stop on signals
- On mac, g++ (clang) fails to search /usr/local/include and /usr/local/lib by default
- NSTimer not firing when NSMenu is open in Swift
- Xcode : Adding a project as a build dependency
- trying to animate a constraint in swift
- A valid provisioning profile for this executable was not found… (again)
- How to find your current location with CoreLocation
- Xcode 4.6.2 app crashes on every second run
- How to manually create icns files using iconutil?
- Xcode 7 Library search path warning
- React Native / Xcode Upgrade and now RCTConvert.h not found
- How to profile memory usage & performance with Instruments?
- Get UITableView to scroll to the selected UITextField and Avoid Being Hidden by Keyboard
- What is my “Target” and how do I add a file to it for unit testing?
- How do you update Xcode on OSX to the latest version?
- How to change variables value while debugging with LLDB in Xcode?
- How to get .app file of a xcode application
- Couldn’t register with the bootstrap Server
- Xcode: No Scheme
- “Warning: unable to build chain to self-signed root for signer” warning in Xcode 9.2
- Xcode 4 code sense is not working
- What’s the Xcode “no such file or directory error”?
- Xcode 4: Run tests from the command line (xcodebuild)?
- Xcode 4 plugin development