QuadFlask / react-native-naver-map

🗺️naver map for react-native
MIT License
163 stars 147 forks source link

[IOS] Undefined symbols for architecture arm64 error #160

Open yunyami0605 opened 1 year ago

yunyami0605 commented 1 year ago

Version of react-native-naver-map libraries

0.0.66

Version of react-native

0.70.3

Platforms you faced the error (IOS or Android or both?)

IOS

Expected behavior

IOS 시뮬레이터 빌드가 되야합니다.

Actual behavior

아래와 같은 에러가 발생합니다.

building for iOS Simulator-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) Undefined symbols for architecture arm64: "_NMF_LAYER_GROUP_BICYCLE", referenced from: _68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUPBUILDING", referenced from: 68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUP_CADASTRAL", referenced from: _68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUPMOUNTAIN", referenced from: 68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUP_TRAFFIC", referenced from: _68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUPTRANSIT", referenced from: 68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_OBJCCLASS$_NMFAlignType", referenced from: objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o) "_OBJCCLASS$_NMFCameraPosition", referenced from: objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o) "_OBJCCLASS$_NMFCameraUpdate", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapViewManager.o) objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o) "_OBJCCLASS$_NMFCircleOverlay", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapCircleOverlay.o) "_OBJCCLASS$_NMFMarker", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapMarker.o) "_OBJCCLASS$_NMFNaverMapView", referenced from: _OBJCCLASS$_RNNaverMapView in libreact-native-nmap.a(RNNaverMapView.o) "_OBJCCLASS$_NMFOverlayImage", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o) objc-class-ref in libreact-native-nmap.a(RNNaverMapMarker.o) "_OBJCCLASS$_NMFPath", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o) "_OBJCCLASS$_NMFPolygonOverlay", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPolygonOverlay.o) "_OBJCCLASS$_NMFPolylineOverlay", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPolylineOverlay.o) "_OBJCCLASS$_NMGLatLng", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapCircleOverlay.o) objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o) "_OBJCCLASS$_NMGLatLngBounds", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapViewManager.o) objc-class-ref in libreact-native-nmap.a(RCTConvert+NMFMapView.o) "_OBJCCLASS$_NMGLineString", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o) objc-class-ref in libreact-native-nmap.a(RNNaverMapPolygonOverlayManager.o) objc-class-ref in libreact-native-nmap.a(RNNaverMapPolylineOverlay.o) "_OBJCCLASS$_NMGPolygon", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPolygonOverlay.o) "_OBJCMETACLASS$_NMFNaverMapView", referenced from: _OBJCMETACLASS$_RNNaverMapView in libreact-native-nmap.a(RNNaverMapView.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Tested environment (Emulator? Real Device?)

시뮬레이터 iphone 13 (ios 16.0) 실제기기 iphone SE2 (ios 15.6.1) mac pro m1 sdk version 3.15.0

스크린샷 2022-11-26 오전 12 17 31

스크린샷과 같이 설정도 해보고 podfile에 sdk 버전도 내려보았습니다.

m1에서 위 문제를 해결할 방법이 있을까요? (안드로이드는 정상 작동합니다.)

AlgoRoots commented 1 year ago

@yunyami0605 해결하셨나요?