Unfortunately the underscore workaround mentioned by tbaigner and GravityBytes did not apply to my case of this bug. I had to add -weak_framework SwiftUICore to the Other Linker Flags (OTHER_LDFLAGS) section of the Build Settings tab of my app target.
I am also using Capacitor for reference. See here for my formal bug report to Capacitor.
Hope this helps someone:)