title: App Store upload rejected by push entitlements problem
body: <p>I had to make some changes in my old iPhone app in XCode.</p>
  
  <p>When uploading it to the App Store I get the following problem:</p>
  
  <p>"ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file."</p>
  
  <p>I have done it that it said. I regenerated all my certificates and so on, but it does not fix my issue.</p>
  
  <p>When I click Fix issue, it comes again and again.
  <a href="https://i.stack.imgur.com/nejuw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nejuw.png" alt="enter image description here"></a></p>
  
  <p>Anyway, I had it in my entitlements file (it does not help even if I update it to production)</p>
  
  <p><a href="https://i.stack.imgur.com/zp8Ln.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zp8Ln.png" alt=""></a></p>
  
  <p>My certs are ok:</p>
  
  <p><a href="https://i.stack.imgur.com/Qlpxu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Qlpxu.png" alt=""></a></p>
  
  <p>What should I do?</p>
  
  <p>Thanks a lot!</p>