react-native-nmap 설치

Krystal·2023년 1월 16일
0

처음설치

npm install react-native-nmap --save

dependency 오류 발생시 -force로 강제설치

npm install react-native-nmap --save -force

ios에서 에러날 build error

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/krystal/Library/Developer/Xcode/DerivedData/Flit_customer-hgxxxcoceyxgdsgyoxttyeccnfwe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-nmap.build/Objects-normal/x86_64/RNNaverMapViewManager.o /Users/krystal/Flit_customer/node_modules/react-native-nmap/ios/reactNativeNMap/RNNaverMapViewManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-nmap' from project 'Pods')
	CompileC /Users/krystal/Library/Developer/Xcode/DerivedData/Flit_customer-hgxxxcoceyxgdsgyoxttyeccnfwe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-nmap.build/Objects-normal/x86_64/RNNaverMapView.o /Users/krystal/Flit_customer/node_modules/react-native-nmap/ios/reactNativeNMap/RNNaverMapView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-nmap' from project 'Pods')
(2 failures)

해결방안

client/ios/Podfile 파일에
"pod 'NMapsMap','3.10.1"
NMapsMap 버전 추가

pod 'NMapsMap','3.10.1'

git-lfs 설치후 pod install

$ brew install git-lfs
$ cd 프로젝트
$ git-lfs install

$ cd ios/
$ rm -rf Pods/
$ pod install
profile
🚀Be an active developer

1개의 댓글

comment-user-thumbnail
2023년 1월 27일

Test 댓글

답글 달기