# Strange linker error mentioning \`\_swift\_getTypeByMangledNameInContextInMetadataState\`

**URL:** <https://forums.swift.org/t/strange-linker-error-mentioning-swift-gettypebymanglednameincontextinmetadatastate/38936>\
**Category:** Using Swift\
**Created:** [July 31, 2020, 3:59pm UTC](https://forums.swift.org/t/strange-linker-error-mentioning-swift-gettypebymanglednameincontextinmetadatastate/38936 "2020-07-31T15:59:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Joe\_Groff](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joe_groff/32/1929_2.png) [@Joe\_Groff](https://forums.swift.org/u/Joe_Groff)\
**Post date:** [July 31, 2020, 4:25pm UTC](https://forums.swift.org/t/strange-linker-error-mentioning-swift-gettypebymanglednameincontextinmetadatastate/38936/2 "2020-07-31T16:25:00Z")

</div>

It sounds like you're trying to link against an older Swift runtime while targeting a newer OS. `swift_getTypeByMangledNameInContextInMetadataState` was added in iOS 13.4 IIRC, and is not in older OS runtimes, nor is it in the Swift 5.0 runtime used for backward deployment to pre-Swift-ABI OSes. You shouldn't need to add the toolchain library paths to LIBRARY\_SEARCH\_PATHS yourself, because Xcode will automatically include those libraries if your minimum deployment target is old enough to need them.

---

_[View the full topic](https://forums.swift.org/t/strange-linker-error-mentioning-swift-gettypebymanglednameincontextinmetadatastate/38936)._
