Undefined symbol _swift_getTypeByMangledNameInContextInMetadataState

I am getting the following linking error in my React Native project: Undefined symbol _swift_getTypeByMangledNameInContextInMetadataState. Any hints on the source of this type of errors?


Thank you!

Replies

One possible reason is that some parts of the library is using a private function once existed in Swift runtime.

Anyway, React Native is not an Apple's framework and you should better contact to the author.

Thank you for your help!

cheers

We were able to resolve the issue with help from https://forums.swift.org/t/undefined-symbol-swift-getfunctionreplacement/30495

Apparently, the `inherited` Library Search Paths were conflicting. Removing that line fixed the issue.

Thanks again.

Just to clear it up, my solution was to go to the "Library Search Paths" under the test target build settings and delete the whole line except for "$(inherited)"

  • SALUTE! Thank You you save my day

Add a Comment