# 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:** 3

<div class="post-metadata">

**Author:** ![Michael\_Brown](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/michael_brown/32/2480_2.png) [@Michael\_Brown](https://forums.swift.org/u/Michael_Brown)\
**Post date:** [July 31, 2020, 8:55pm UTC](https://forums.swift.org/t/strange-linker-error-mentioning-swift-gettypebymanglednameincontextinmetadatastate/38936/3 "2020-07-31T20:55:15Z")

</div>

> It sounds like you're trying to link against an older Swift runtime while targeting a newer OS.

It turns out that at the Project level, not the Target level, someone had defined:

```swift
LIBRARY_SEARCH_PATHS = (
					"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
					"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
					"\"$(inherited)\"",
				);

```

🤦‍♂️

After removing that, and making sure everything is targeting iOS 13.5, the error has gone away. Thanks for your help Joe 👍

---

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