As I've reported in this issue when using $(inherited)
in LIBRARY_SEARCH_PATHS
I'm getting the following linker error:
Undefined symbols for architecture x86_64:
"_swift_getTypeByMangledNameInContextInMetadataState", referenced from:
___swift_instantiateConcreteTypeFromMangledNameAbstract in Backend.o
___swift_instantiateConcreteTypeFromMangledNameAbstract in DP3TSDK.o
ld: symbol(s) not found for architecture x86_64
The only other places where I've seen this issue mentioned have been in relation to React Native projects. The issue above is also in a React Native project.
The workaround is to remove the $(inherited)
entry and setting all the LIBRARY_SEARCH_PATHS
manually. However, I fail to understand how that makes a difference.
The only thing that is "removed" from LIBRARY_SEARCH_PATHS
by doing this is two entries to the swift toolchain:
toolchain/usr/lib/swift/iphoneos
toolchain/usr/lib/swift-5.0/iphoneos
So I'm at a loss to understand what's going on.
The symbol in question is part of the swift runtime.