-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config different Capabilities based on environment #24
Comments
You could use xcconfig variables in your entitlements file, for instance:
and then use this in xcconfig:
APPGROUP1: "com.app.group1"
APPGROUP2: "com.app.group2" or create different entitlement files per configuration / environment and use the |
Thanks. How about extension entitlement? ( |
@vinhlk: Yes, works the same way |
I have tried NotificationExtension. the 1st option xcconfig does not seem to work. (Also created scheme for pushnotification-dev, pushnotification-staging...) |
Another approach would be to use the files:
Path/To/NotificationExtensions.entitlements:
Staging: Path/To/NotificationExtensions-staging.entitlements:
Production: Path/To/NotificationExtensions-production.entitlements: The only thing you need to do is create 2 seperate entitlements files for each environment |
I still have problem config natrium with |
Hi @basvankuijck I made it work by using multiple file for |
The "problem" is that it only changes the xcconfig for the target that initiates the build (e.g. NatriumExampleProject) and not any target dependencies (e.g. RichPushNotificationExtension). I'll put it on the todo list so you can change the settings of any dependency target |
Hi is there a way to config Different Capabilities base on environment (Dev, Stagging, Production) (in my case is
AppGroup
) ?Seem we should modify
But what is the config for other capabilities? (
AppGroup
for example)?The text was updated successfully, but these errors were encountered: