- Create a
Production.xcconfig
and aDevelopment.xcconfig
file (or whatever you want to call them) - In both of those config files:
(production) [development]
BUNDLE_IDENTIFIER = (com.company.ios) [com.company.ios.dev]
PRODUCT_NAME = (App) [App Dev]
API_SCHEME = (https) [https]
API_HOST = (api.company.com) [dev.company.com]
- In the Project Navigator select the Project (not a Target) > Info > Configurations > + “Duplicate Debug” > Rename to “Development Debug”
- Rename
“Debug” -> “Production Debug”
,“Release” -> “Production Release”