In the apple developer portal --> "Certificates, Identifiers & Profiles"
Every time I create a new profile of type "AppStore", the new profile doesn't include the infamous "com.apple.developer.device-information.user-assigned-device-name"
key, although this key is correctly selected in the "Identifier" of my app (already did all the validation process for activating this key).
If I create a profile of type "Development", the key is present. But I can't upload to the AppStore with that one, because I'm getting the error:
Provisioning profile failed qualification Profile doesn't include the com.apple.developer.device-information.user-assigned-device-name entitlement.
I'm checking the presence of the key with the recommend TN3125 method.
Also sent a support request but still waiting.
Finally solved by adding a text field at the login where the user should write the device name. Definitely not an elegant solution but we all know the problems about updating legacy code in a production app, and is the only way to obtain the same device name as before.
For your interest, the problem was that the production entitlement was never granted but in the certificates web there was a bug showing it enabled for production. You can check if an entitlement is really granted with the command line app.