title: Invalid Code Signing Entitlements for push notification (ITMS 90046)
body: <p>I am getting an error when trying to submit an update to my iPhone app through Application Loader. I have not changed anything in the configuration since I did the last update, so I am not sure why it's complaining now.</p>
  
  <p>I have tried refreshing my provisioning profiles in Xcode and also tried to explicitly set the Provisioning Profile in project's Build Settings. When explicitly set the Provisioning Profile in Build Setting and then do Archive, Xcode complains that "No matching code signing identities" for the selected provisioning profile were found. When I do Fix Issue, Xcode resets the Provisioning Profile in Build Settings back to Automatic and Code Signing Identity to iPhone Developer.</p>
  
  <p>I have also tried to do a clean build, Alt + Clean to clean the build folder, restarted Xcode multiple times, and did a Delete on Derived Data in Organizer > Projects, but nothing has helped.</p>
  
  <p>"ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your applications bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'development' for key 'aps-environment' in '...' is not supported."</p>
  
  <p>When I try to submit the Archive after Xcode automatically resets Code Signing Identity to iPhone Developer, I get the following error.</p>
  
  <p>I could try to revoke the Distribution certificate, but I am not sure what's the consequences will be. On Apple's website it says that revoking a certificate doesn't impact existing apps in the store, but I am concerned if there are any other unintended impact of this that I haven't thought about.</p>
  
  <p>"Failed to locate or generate matching signing assets: Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues -- Your account already has a valid iOS Distribution certificate. If you have your signing identity on another Mac, you can import a developer profile. You can also revoke the current certificate and request one again."</p>
  
  <p>Any help would be greatly appreciated.</p>