After in-depth research conducted by our tooling team we couldn't find a permanent solution to the ongoing issue with the 2FA enabled Apple Developer Accounts.
To summarise the issue: currently the session provided for 2FA Apple Developer Accounts is only kept alive for about 8 hours (this means that you have to re-authenticate on your profile page every 8 hours)
We are still looking for solutions that could help with authentication and we are also keeping an eye on Apple's announcements to be able to implement a new solution as soon as it is available.
In the meantime there are some workarounds for the issue:
- If you'd like to use the connected Apple Developer Account you'd need to login every 8 hours on your profile page on Bitrise.
- You can use the "Certificate and Profile Installer" step until there's a permanent solution (you can use our codesigndoc tool to export all the needed profiles and certificates - Paste this script into your terminal and follow the instructions bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/_scripts/install_wrap.sh