반응형
RN 개발중 naver map을 추가하기 위해 아래 패키지를 깔았다
github.com/QuadFlask/react-native-naver-map
안드로이드는 잘되는데, ios 빌드시 아래와 같은 에러가 발생한다.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NMFCameraPosition", referenced from:
objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o)
"_OBJC_METACLASS_$_NMFNaverMapView", referenced from:
_OBJC_METACLASS_$_RNNaverMapView in libreact-native-nmap.a(RNNaverMapView.o)
"_OBJC_CLASS_$_NMFCircleOverlay", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapCircleOverlay.o)
"_OBJC_CLASS_$_NMFNaverMapView", referenced from:
_OBJC_CLASS_$_RNNaverMapView in libreact-native-nmap.a(RNNaverMapView.o)
"_OBJC_CLASS_$_NMGPolygon", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapPolygonOverlay.o)
"_OBJC_CLASS_$_NMGLatLngBounds", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapViewManager.o)
objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o)
"_OBJC_CLASS_$_NMFCameraUpdate", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapViewManager.o)
objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o)
"_OBJC_CLASS_$_NMGLatLng", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapCircleOverlay.o)
objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o)
"_OBJC_CLASS_$_NMFOverlayImage", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapMarker.o)
objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o)
"_OBJC_CLASS_$_NMFPath", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o)
"_OBJC_CLASS_$_NMFPolylineOverlay", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapPolylineOverlay.o)
"_OBJC_CLASS_$_NMFMarker", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapMarker.o)
"_OBJC_CLASS_$_NMGLineString", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o)
objc-class-ref in libreact-native-nmap.a(RNNaverMapPolylineOverlay.o)
objc-class-ref in libreact-native-nmap.a(RNNaverMapPolygonOverlayManager.o)
"_OBJC_CLASS_$_NMFAlignType", referenced from:
objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o)
"_OBJC_CLASS_$_NMFPolygonOverlay", referenced from:
objc-class-ref in libreact-native-nmap.a(RNNaverMapPolygonOverlay.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
이것저것 시도를 해보다가 아래 명령어로 pod 의존성 업데이트하여 해결하였다.
pod install --repo-update
원인은 pod 의존성이 최신버전을 가져오지 못해 바이너리가 누락된것으로 보인다.
반응형
'Front-end > React & React Native' 카테고리의 다른 글
[React Native] ios 앱 배포하기 - 빌드부터 스토어 업로드까지 (0) | 2020.12.07 |
---|---|
[React Native] ios 빌드시 main.jsbundle does not exist. This must be a bug with 에러 해결방법 (0) | 2020.12.07 |
React Native 이미지/동영상 갤러리(스와이프) 구현 삽질기 (4) | 2020.11.26 |
React Native 컴포넌트에서 children 스타일 덮어쓰는 방법 (0) | 2020.11.19 |
[React] ApolloClient 캐시 비우는 간단한 방법 (0) | 2020.11.19 |