This is error I get when I try to build distribution build.
Code Signing Error: Mimic has conflicting provisioning settings. Mimic
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.0’
It works when I build in Developer mode, but the problem are push notifications then, they only work in sandbox mode.