In my case the solution was to go to the Apple Developer site and accept updated agreements. After that, Xcode was able to sign the packages as normally.