Enterprise Distribution using Automatic signing

I am trying to use automatic signing in Xcode 11 for Enterprise Distribution.


My code signing style is "Automatic"

Code signing identity is "Apple Distribution"

Development Team is the the corret Team

Provisioning Profile is "Automatic"


I dont understand why xcode keep throwing error stating


"XXXXX has conflicting provisioning settings. XXXXX is automatically signed for development, but a conflicting code signing identity Apple 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 Signing & Capabilities editor"


Am I not allowed to set "Apple Distribution" while using automatic code signing?