See my comment above on how the issue was resolved for me.
On top of that another suggestions from Apple on my Feedback Assistent ticket was related to changing some build settings, I didn't try these, but posting them here anyway as it may help someone else:
"The real problem here is most likely related to auto-linking. Auto-linking is a feature where linker automatically resolves library dependencies. For Swift code you can opt-out of that using the SWIFT_MODULES_AUTOLINK build setting, or using CLANG_MODULES_AUTOLINK for C/Objective-C code. For Swift you can also try some more granular options such as SWIFT_SKIP_AUTOLINKING_ALL_FRAMEWORKS, SWIFT_SKIP_AUTOLINKING_FRAMEWORKS, SWIFT_SKIP_AUTOLINKING_LIBRARIES to control what is auto-linked. Once you disable auto-linking you’ll see a bunch of undefined symbols, and based on that you’ll need to determine which frameworks/libraries need to be explicitly linked (configured through build phases as explained in https://developer.apple.com/documentation/xcode/customizing-the-build-phases-of-a-target#Link-against-additional-frameworks-and-libraries )"
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: