I have the same issue. I was wondering if someone figured it out.
EDIT: The link error was unrelated to the ld: warning: Could not find or use auto-linked library 'swiftCxx': library 'swiftCxx' not found warnings.
There were other libs that weren’t linked (in our case core haptics and cloudkit) that were the true source of the problem.