I've modified a bit the using a path approach like
let bundleUrl = Bundle.main.privateFrameworksURL!.appendingPathComponent("StaticFramework.framework")
let bundle = Bundle(url: bundleUrl)
so that it works now.
It can be used as a workaround
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: