We had been using the workaround above in our project, and it was working fine.
Later, we partially migrated the project from CocoaPods to SwiftPM, and after that the issue started showing up again at runtime. In our case it was no longer just a launch-time symbol error, but a runtime crash caused by a weak import.
I do not know why, I do not know how, and I do not know why this makes any difference at all, but the only thing that fixed the project for us was removing the commas from the workaround above.
This form finally worked for us:
"-Wl -force_load $(SDKROOT)/usr/lib/libc++abi.tbd",
"-Wl -weak_library $(SDKROOT)/usr/lib/libc++.tbd",
"-Wl -weak_library $(SDKROOT)/usr/lib/libc++.1.tbd",
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: