I have created the app id with APNS enabled and I configured both development and production certificate
Now when I create entitlements it is always displaying developme
XCode 10.2:
If you change your target to "Generic iOS Device" before Archive it will set the aps-environment variable to production. If you archive with the target set to your device it will archive with the aps-environment variable set to development.