Just in case like you're like me and have this problem with a Framework, and not a dylib, (in my case, /System/Library/Frameworks/SwiftUI.framework/SwiftUI ) you have to tweak the Linker Flag just a little bit: -weak_framework SwiftUI
Topic:
Developer Tools & Services
SubTopic:
General
Tags: