Skip to content

Instantly share code, notes, and snippets.

@hdmdhr
Last active April 11, 2022 22:43
Show Gist options
  • Save hdmdhr/328faa3219e2ff20b853ab2b5401cff4 to your computer and use it in GitHub Desktop.
Save hdmdhr/328faa3219e2ff20b853ab2b5401cff4 to your computer and use it in GitHub Desktop.
Staging.xcconfig before including Base config
// Staging.xcconfig
// API URL
API_BASE_URL = http:/$()/my-less-cool-staging-url.com
// API Key
API_KEY = my_super_secret_staging_api_key
// Backward Compatible Values
IS_PRODUCTION = NO
ENV_NAME = staging
// Overriding (do NOT change key name)
// app name
PRODUCT_NAME = MyAppName $(ENV_NAME)
// bundle id
PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.myapp.$(ENV_NAME)
// app icon
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon_NonProduction
// app version
MARKETING_VERSION = 1.0.0
// build number
CURRENT_PROJECT_VERSION = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment