Is there a way to truly clear dep cache?

yes, it is a solved problem in other languages but sadly not in swift, for the simple reason that no one is being paid to solve it. this is of course, one of the most common species of living room elephant in open source projects.