[RN ์—๋Ÿฌ๋…ธํŠธ๐Ÿ”ฅ] Undefined symbols for architecture x86_64: "_swift_getTypeByMangledNameInContextInMetadataState", referenced from: ...

๋„๋””ยท2022๋…„ 8์›” 4์ผ
1

RN ์—๋Ÿฌ๋…ธํŠธ ๐Ÿ”ฅ

๋ชฉ๋ก ๋ณด๊ธฐ
22/25

์ƒํ™ฉ

ios์— ์œ„์ ฏ์„ ์ถ”๊ฐ€ํ•˜๋ ค๋‹ค, ios widget extension์„ ์ถ”๊ฐ€ํ•˜๋ฉด์„œ, ๋นŒ๋“œ๋ฅผ ํ•˜๋ ค๋‹ค ๋ณด๋‹ˆ ์•„๋ž˜์™€ ๊ฐ™์€ Link ์˜ค๋ฅ˜๊ฐ€ ๋œจ๋”๋ผ!

Undefined symbol: _swift_getTypeByMangledNameInContextInMetadataState
Undefined symbol: _swift_getOpaqueTypeConformance

์Šคํƒ์˜ค๋ฒ„ํ”Œ๋กœ์šฐ๋ฅผ ์ฐพ์•„๋ณด๋‹ˆ ๋ฐ”๋กœ ๋‹ต์ด ๋‚˜์™”๋‹ค.
https://stackoverflow.com/questions/64584466/cannot-build-after-adding-ios-widget-to-existing-react-native-project-symbols

์ƒˆ๋กœ ์ถ”๊ฐ€ํ•œ Widget Extension Target์˜ Build Settings > Search Path > Library Search Paths ๊ฐ’์„ ์ˆ˜์ •ํ•˜๋‹ˆ๊นŒ ์ž˜ ๋นŒ๋“œ๊ฐ€ ๋˜๋”๋ผ

- from
"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)"

- to
"$(TOOLCHAIN_DIR)/usr/lib/swift-5.2/$(PLATFORM_NAME)"
profile
์ถฉ์ „์ค‘..๐Ÿค”

0๊ฐœ์˜ ๋Œ“๊ธ€