iTunes Connect submission code signing entitlements error Xcode 8
<p>I am having trouble submitting my newest app update with Xcode 8 GM. I updated my iPhone and watchOS app in this update.</p>

<p>When trying to submit I get the following error:</p>

<blockquote>
  <p>iTunes Store operation failed. Invalid Code Signing Entitlements. Your
  application bundle's signature contains code signing entitlements that
  are not supported on iOS. Specifically, value 'QX3TDZXXXX.AppName'
  for key 'application-identifier' in
  'Payload/AppName.app/AppName' is not supported. This value
  should be a string starting with your TEAMID, followed by a dot '.',
  followed by the bundle identifier.</p>
</blockquote>

<p>I set signing to automatic by checking "Automatically manage signing" in Xcode. Everything looks fine to me. </p>

<p>After searching for a solution everywhere I tried to change the Code Signing Identity in Build Settings to iOS Distribution. That also gives me an error right away:</p>

<blockquote>
  <p>AppName has conflicting provisioning settings. AppName is
  automatically signed for development, but a conflicting code signing
  identity iPhone Distribution has been manually specified. Set the code
  signing identity value to "iPhone Developer" in the build settings
  editor, or switch to manual signing in the project editor. Code
  signing is required for product type 'Application' in SDK 'iOS 10.0'</p>
</blockquote>

<p>I also:</p>

<ul>
<li>cleaned project</li>
<li>restarted Xcode</li>
<li>rebooted my Mac</li>
<li>revoked my distribution certificate</li>
</ul>

<p>Did someone else have a similar problem and knows how to fix it?</p>

<p>Thanks in advance!</p>