For a project I'm working on, I need to build and link Bugsnag as a dynamic framework because I need to link against Bugsnag in both an app target and a framework target. Unfortunately there is a bug / behavior in Xcode where it always builds a static framework unless the dynamic option is explicitly specified in the Package.swift file. For more discussion, see this thread:
https://forums.swift.org/t/how-to-link-a-swift-package-as-dynamic/32062
Other projects, like SwiftMessages, have dealt with this by adding separate products that explicitly specify the dynamic option in Package.swift:
SwiftKickMobile/SwiftMessages#495
I have confirmed that doing something similar in Bugsnag fixes my problem and allows me to link against Bugsnag in both an app and framework target simultaneously. I have opened the following pull request to fix this issue in Bugsnag:
#1870