I hadn’t tried 's method… only because I hacked at it a bit and got it working before this answer.
Here’s what I did…
There’s a file that’s generated sometime early on during your project (not every build)…
Intermediate/ProjectFilesIOS/build/YourApp.build/ShippingIphoneOS/YourAppBuild/YourApp.app.xcent
In there, there is some XML-ish key/value pairs. I added…
<key>aps-environment</key>
<string>production</string>
Save, and re-package your project. Apple stopped complaining for me.
I think the “correct” way is to hunt a little more and find out where/when the file that was generated omitted this setting. So, I wouldn’t use this as a permanent solution. But it should unblock you for now.