Automatic signing stopped working with app that has different appid and teamid

Automatic singing does not seem to work in the last 4 days. My app has different appid and teamid and when trying to run, archive, or submit it gives me an error that no team with this teamid was found (the error mentions the AppID prefix which is not the team id of course). My app is using Keychain so changing the app prefix is not an option. Turning signing to manual and creating all the appropriate provisining profiles through the portal works fine but it is a hard option for a team with 30 developers!