The issue is caused by a missing signing file required by Xcode. E.g. Xcode 8+ if managed signing is enabled then even if you do a distribution type archive Xcode still requires a team dev profile too for an initial signing.
Please make sure that you have a Certificate and profile installer step in the workflow as described in the guide, as that’s the step which downloads and installs the signing files you upload to bitrise.io! Please also make sure that this step (Certificate and profile installer) is updated to the latest version!
The error is due to a missing development profile, which is still required even for production exports. codesigndoc was designed to find the required base signing files on your Mac and export those automatically for you, so that you don’t have to manually collect and export those.
codesigndocdoes not change any of the files on your Mac, it does not delete any file etc., all it does is it copies/exports the files, leaving the original ones intact. Source code of codesigndoc can be found at https://github.com/bitrise-tools/codesigndoc
I still have this issue even after I followed code signing guide. I 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?
I was thinking of the following strategies (correct me if I’m still being naive)
Compile only, not the complete build, but compiling deps + linking, without trying to sign the product as the latest stage
Build, but in debug mode were automatic signing can be used easily
Use a try-catch in my fastlane bitrise lane, to swallow the error
They all have drawbacks, and I understand their consequences. I’d like to know before making mods if they are going to work, because working on CI reiteratively is really-really time costly.