A library i'm using is facing the same issue. Someone made a fork and did as you suggested here. It was working fine, but now as of Xcode 12.5.1, seems the same issue is affecting it this way too.
Has the same happened to you?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: