I try to distribute my app using an apple enterprise account but encounter a really weird problem.
In apple developer portal I first created an App-ID with an explicit bundle identifier (I already have a distribution-certificate so there was no need to add something):
After this I created a distribution provisioning profile for InHouse distribution using the previously generated App-ID (with explicit bundle-ID):
Than I downloaded the profile and installed it.
In XCode I made sure, that my project uses the correct Bundle-Identifier:
And of course I set the code signing settings to my previously generated distribution profile (using the App-ID with explizit Bundle-Identifier)
After everything was set I generated an archive and opened it in the organizer. In the organizer I checked the details and even here the correct Bundle ID is displayed:
But if I try to export the archive I get following error:
I really don't get it. I don't even have a wildcard App ID in my enterprise account. I would very much appreciate every hint or suggestion.
THANK YOU!!!
I found the solution.
Thanks to this post I found this apple announcement and was able to fix the issue as described:
"Xcode unable to create distribution builds for App Store submissions or Enterprise apps. This issue occurs when the expired WWDR Intermediate certificate is present in both the System keychain and Login keychain within the Keychain Access application. To resolve the issue, first download and install the renewed certificate. Next, in the Keychain Access application, select the System keychain. Select 'Show Expired Certificates' in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate. Your certificates should now appear as valid in Keychain Access and be available to Xcode."