대런대런
CodeCraft
대런대런
전체 방문자
오늘
어제
  • 분류 전체보기 (18)
    • 블록체인 (1)
    • Front-end (13)
      • Browser (2)
      • React & React Native (11)
    • Windows (4)
    • 알고리즘 (0)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • apollo-client
  • main.jsbundle
  • ios 파일다운로드
  • rn-fetch-blob
  • 브라우저 엔진
  • offsetLimitPagination
  • 앱스토어 업로드
  • react-native-fs
  • edge effect
  • ios build
  • react
  • react native
  • local server
  • 윈도우10
  • 브라우저 원리
  • strapi
  • web3
  • 파일 안보임
  • style overriding
  • webkit

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
대런대런

CodeCraft

Front-end/React & React Native

[React Native] react-native-naver-map ios 빌드시 Undefined symbols for architecture x86_64: 에러

2020. 12. 6. 23:25
반응형

RN 개발중 naver map을 추가하기 위해 아래 패키지를 깔았다

github.com/QuadFlask/react-native-naver-map

 

QuadFlask/react-native-naver-map

🗺️naver map for react-native. Contribute to QuadFlask/react-native-naver-map development by creating an account on GitHub.

github.com

안드로이드는 잘되는데, 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
    'Front-end/React & React Native' 카테고리의 다른 글
    • [React Native] ios 앱 배포하기 - 빌드부터 스토어 업로드까지
    • [React Native] ios 빌드시 main.jsbundle does not exist. This must be a bug with 에러 해결방법
    • React Native 이미지/동영상 갤러리(스와이프) 구현 삽질기
    • React Native 컴포넌트에서 children 스타일 덮어쓰는 방법
    대런대런
    대런대런
    IT & 프로그래밍 관련 블로그

    티스토리툴바