iOS Debug, Staging and Release States with Structural .xconfig with struct for API Mode
Steps
- Add .xcconfig Files To Your XCode Project Configuration files add to project settings.
- New schemes add to project and make sure target is your XCode project name.
- Set variables in your config files and access them via your info.plist file.
-
Add Swift file to project.
-
Create New struct ApiMode with variable accroding your requirement. Example is in code..