Ionic Framework: iOS Release-Build schlägt fehl mit “… automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. …”

Das Erzeugen des Release-Builds einer mit dem Ionic-Framework tritt in Xcode die folgende Fehlermeldung auf:

Code Signing Error: (..). has conflicting provisioning settings. (…) 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 Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 11.3’

Um dieses Problem zu beheben, öffnet man die Datei ./platforms/ios/cordova/build-release.xconfig im Editor und ändert die Zeilen:

CODE_SIGN_IDENTITY = iPhone Distribution
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution

in

CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer

Fertig. Anschließend gelingt das Code Signing der App.