Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTunes Connect submission code signing entitlements error Xcode 8

I am having trouble submitting my newest app update with Xcode 8 GM. I updated my iPhone and watchOS app in this update.

When trying to submit I get the following error:

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.

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

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:

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'

I also:

  • cleaned project
  • restarted Xcode
  • rebooted my Mac
  • revoked my distribution certificate

Did someone else have a similar problem and knows how to fix it?

Thanks in advance!

like image 598
MikeB Avatar asked Sep 12 '16 15:09

MikeB


People also ask

How do I add code signing entitlements in Xcode?

Select the Target and open the Build settings inspector. In the 'Code Signing Entitlements' build setting, type in the filename of the new Entitlements. plist file including the extension. There is no need to specify a path unless you have put the Entitlements.

What is code signing entitlement Xcode?

During code signing, the entitlements corresponding to the app's enabled Capabilities/Services are transferred to the app's signature from the provisioning profile Xcode chose to sign the app. The provisioning profile is embedded into the app bundle during the build.

What is entitlement file in Xcode?

An app stores its entitlements as key-value pairs embedded in the code signature of its binary executable. You configure entitlements for your app by declaring capabilities for a target in Xcode. Xcode records capabilities that you add in a property list file with the . entitlements extension.


2 Answers

What helped me was:

I unchecked "Automatically manage signing" and then check it on again. After that Xcode told me it would reset the settings to the default and after that it finally worked.

like image 136
Witold Avatar answered Oct 08 '22 22:10

Witold


I wasted more than a whole day on this but I finally found the solution!

Somehow in my Build Settings, the "Product Bundle Identifier" was only my apps name instead of the unique Bundle Identifier (e.g. com.YX.AppName).

Click on your project, choose your App, press Build Settings and search for "packaging". You should find it there.

Found this by creating a brand new project and comparing every single setting.

In case this is not what is wrong in your project, these are the things I found on this topic before. Maybe one of these things might help you:

  • project > Alt + Clean (Cleans the whole Build Folder)
  • restarted xcode (that helped many others!)
  • revoked all Provisioning Profiles and let Xcode create new ones (Xcode > Preferences > Accounts > View Details > Create next to iOS Distribution)
  • checked that all App ID names where right
    • for com.AB.CDE the name has to be "com AB CDE"
  • restarted PC
  • checked that Xcode and macOS were the newest version
like image 31
MikeB Avatar answered Oct 08 '22 22:10

MikeB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!