Make a preprocessor for convenient to switch code.
1. Click the project
2. Click "TARGETS"
3. Click "Build Settings"
4. Search "Other Swift Flags"
In there you can add preprocessors what you want.
Setting | ProjectName |
---|---|
Debug | -DDEBUG |
Release | -DRELEASE |