I have an issue with code signing while archiving a build. I followed the code signing guide and uploaded all the needed certificates and provisioning profiles. The code signing works fine in the manual mode, when I select the needed profiles in Xcode. But it doesn’t work in the automatic mode, when I turn on “Automatically manage signing”. I tries 2 different approaches – fastlane (sign and gym) and Xcode Archive step, but the result was the same: “Code signing is required for product type ‘Application’ in SDK”. Could you please suggest what am I doing wrong?