I managed to resolve this issue only by giving up Cocoapods and fully transitioning to SPM (Swift Package Manager). In this case, everything started working immediately. Perhaps this option could work for you as well.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: