Same issue for me, we have got 2 different pods which contain same class names.
From Xcode 12 beta 5, the project can't compiled and gives same build error:
'X' has different definitions in different modules; first difference is definition in module 'Y' found method name 'Z'
I think that build process has been changed at Xcode 12 beta 5. I'm looking for a solution.