Error ITMS-90046 XCode 8

After installation of XCode 8 and project migration to Swift 2.3 I started to seeing this message on archive uploading to TestFlight:


ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'AAA00AAAAA.myAppId' for key 'application-identifier' in 'Payload/myApp.app/myApp' is not supported. This value should be a string starting with your TEAMID, followed by a dot '.', followed by the bundle identifier."


Can anyone help me, please?

Having the same, would be glad to hear something from an expert :/

Figured it out by myself. Seems like something changed in project file structure. Anyway, we have two schemes for building our application for internal and external testing with different bundle ids, so I had configured these ids in "User-Defined" section of project build settings. After I removed it and typed manually bundle id in "Identity" section of "General" it uploaded successfully to the TestFlight.

Error ITMS-90046 XCode 8
 
 
Q