Error: exportArchive: Provisioning profile "iOS Team Store Provisioning Profile: com.kugu-home..." doesn't match the entitlements file's value for the application-identifier entitlement

I added a new workflow for our running app as the same app should be uploaded but under a different bundle ID.
But somehow the rewriting of the bundle_id update does not work as excpected:
:x: error: exportArchive: Provisioning profile “iOS Team Store Provisioning Profile: com.kugu-home…” doesn’t match the entitlements file’s value for the application-identifier entitlement.

The first workflow runs without a problem, but the new one just gets this error of the provision profile and bundle id errors.

Here is the associated build: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation
(I also enabled support for that project, if that may help)

this is resolved by adjusting the iOS xcode project files.