react-native-naver-map
react-native-naver-map copied to clipboard
arm64 (m1 mac) IOS Simulator build failed
Version of react-native-naver-map libraries
0.0.66
Version of react-native
0.66.4
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
IOS ์๋ฎฌ๋ ์ดํฐ ๋น๋ ์ฑ๊ณต์ด ๋์ด์ผ ํฉ๋๋ค.
Actual behavior
`Undefined symbols for architecture x86_64: "OBJC_CLASS$_FlipperKitNetworkPlugin", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_SKIOSNetworkAdapter", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_FlipperKitReactPlugin", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_SKDescriptorMapper", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_FlipperClient", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_FlipperKitLayoutPlugin", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_RCTBridge", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_RCTBundleURLProvider", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_RNSplashScreen", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_FKUserDefaultsPlugin", referenced from: objc-class-ref in AppDelegate.o "OBJC_CLASS$_RCTRootView", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
objc[7989]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f5adf7f0) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1111b42c8). One of the two will be used. Which one is undefined. objc[7989]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f5adf840) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1111b4318). One of the two will be used. Which one is undefined. ** BUILD FAILED **
The following build commands failed: Ld /Users/{user_name}/Library/Developer/Xcode/DerivedData/app-axzhzchqkfykidbfhqumdsnwaosn/Build/Products/Debug-iphonesimulator/app.app/app normal (in target 'app' from project 'app') (1 failure)`
Tested environment (Emulator? Real Device?)
IOS ์๋ฎฌ๋ ์ดํฐ iPhone 13 IOS 15.0
Screen Shot
X
IOS ์๋ฎฌ๋ ์ดํฐ์์ ๋์ํ์ง ์์ง๋ง ์ค์ ๊ธฐ๊ธฐ์์๋ ์ ๋์ํฉ๋๋ค.
์ค์ ๊ธฐ๊ธฐ: iPhone Xs IOS 15.2.1
same issue. any solution?
์ ์ค์ ๊ธฐ๊ธฐ์์๋ ๋น๋๊ฐ ๋์ง ์์ต๋๋ค. ์ค์ ๊ธฐ๊ธฐ : iPhone 13 Pro
์ ์ค์ ๊ธฐ๊ธฐ์์๋ ๋น๋๊ฐ ๋์ง ์์ต๋๋ค. ์ค์ ๊ธฐ๊ธฐ : iPhone 13 Pro
๋ณธ๋ฌธ๊ณผ ๋์ผ ์๋ฌ ์ธ๊ฐ์? ์ค์ ๊ธฐ๊ธฐ์์ ์ฝ์งํ ๊ฒฝํ์ด ์์ด์ ํน์ ๋์์ด ๋ ๊น ํด์์
๋ค ๋์ผํ ์๋ฌ๋ก ๋ณด์ ๋๋ค. ํ๊ธฐ ์๋ฌ ์ฌํญ ์ ๋๋ค.
Undefined symbols for architecture arm64: "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$_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) "OBJC_CLASS$_NMFPolylineOverlay", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPolylineOverlay.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$_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) "_NMF_LAYER_GROUP_TRAFFIC", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUP_BICYCLE", 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_GROUP_BUILDING", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUP_MOUNTAIN", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.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$_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$_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$_NMFPath", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o) "_NMF_LAYER_GROUP_TRANSIT", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "OBJC_CLASS$_NMFMarker", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapMarker.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Removed stale file '/Users/peter/Library/Developer/Xcode/DerivedData/nmaptest-ekoiwjlrjexjvaebhreyflvwqglc/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/YogaKit.build/Script-08E6F0E51C5D750A3C1E3566693E61EE.sh'
objc[47029]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f91d6b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105a2c2c8). One of the two will be used. Which one is undefined. objc[47029]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f91d6be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105a2c318). One of the two will be used. Which one is undefined. ** BUILD FAILED **
๋ค ๋์ผํ ์๋ฌ๋ก ๋ณด์ ๋๋ค. ํ๊ธฐ ์๋ฌ ์ฌํญ ์ ๋๋ค.
Undefined symbols for architecture arm64: "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$_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) "OBJC_CLASS$_NMFPolylineOverlay", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPolylineOverlay.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$_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) "_NMF_LAYER_GROUP_TRAFFIC", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUP_BICYCLE", 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_GROUP_BUILDING", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "_NMF_LAYER_GROUP_MOUNTAIN", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.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$_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$_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$_NMFPath", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapPathOverlay.o) "_NMF_LAYER_GROUP_TRANSIT", referenced from: ___68-[RNNaverMapViewManager setLayerGroupEnabled:withGroup:withEnabled:]_block_invoke in libreact-native-nmap.a(RNNaverMapViewManager.o) "OBJC_CLASS$_NMFMarker", referenced from: objc-class-ref in libreact-native-nmap.a(RNNaverMapMarker.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Removed stale file '/Users/peter/Library/Developer/Xcode/DerivedData/nmaptest-ekoiwjlrjexjvaebhreyflvwqglc/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/YogaKit.build/Script-08E6F0E51C5D750A3C1E3566693E61EE.sh'
objc[47029]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f91d6b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105a2c2c8). One of the two will be used. Which one is undefined. objc[47029]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f91d6be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105a2c318). One of the two will be used. Which one is undefined. ** BUILD FAILED **
ํ .. ์ ๊ฒฝ์ฐ๋์ ์ข ๋ค๋ฅด๋ค์ ์ ๋ 11 pro max ๊ธฐ์ข ์ผ๋ก ํ ์คํธ ํ๊ณ ์ ์์ ์ผ๋ก ๋์ ํ์ต๋๋ค ํน์ ๋ชฐ๋ผ์ ์๋ ์์ค์ฝ๋ ์ฒจ๋ถ ๋๋ฆฝ๋๋ค ๋์์ด ๋์์ผ๋ฉด ์ข๊ฒ ๋ค์ https://github.com/yunyeop/locaring/blob/feat/migration-naver-map/app/
์์ ์์๋ก ๋ณด๋ด ๋๋ฆฐ ํ์ผ ๋ณด๋, Podfile์์ ์๋์ ๊ฐ์ด ๋ฒ์ ์ ๋ช ๊ธฐ ํ์ฌ ์ฃผ์ ์ ๊ทธ๋๋ก ๋ฒ์ ์ ๋ช ๊ธฐํ์ฌ Pod install ๋ค์ ํ๊ณ ๋น๋ํ๋, ์ ์๋ํฉ๋๋ค.(์์ง ์๋ฎฌ๋ ์ดํฐ๋ ๋์ผํ ์๋ฌ ๋ฐ์ํฉ๋๋ค.)
pod 'NMapsMap','3.10.1'
๋์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
์ ๋ ์๋ฎฌ์์ ์๋ฌ ๋ฐ์ํฉ๋๋ค ใ ใ ๋์์ด ๋์ด์ ๋คํ์ด๋ค์!
@solidchu @yunyeop ๋ ๋ถ์ฒ๋ผ
pod 'NMapsMap','3.10.1'
์ ๋ช
์ํ๋ ๊ฒฝ์ฐ์ m1์์ ์์ดํฐ ๊ธฐ๊ธฐ(iphone X)๋ก ๋น๋๋ฉ๋๋ค. (์๋ฎฌ๋ ์ดํฐ์์ ์ ๋๊ณ ์ ใ
ใ
) ํนํ ๋ฒ์ ์ 3.10.1
๋ก ์ ํํ๊ฒ ๋ช
์ํ ๊ฒฝ์ฐ๋ง ๋์ต๋๋ค. NMapsMap 3.14.1
์ด ์ต์ ๋ฒ์ ์ธ ๊ฒ ๊ฐ์๋ฐ ์ด ๋ฒ์ ์์ ์ ๋์์ต๋๋ค.
์กฐ๋ง๊ฐ ์ข์ ํด๊ฒฐ์ฑ ์ด ๋์ค๊ธธ ใ ใ
m1 ๋งฅ์์ ์๋ฎฌ๋ ์ดํฐ, ์์ดํฐ ๋น๋ ๋ฐฉ๋ฒ์ ๋๋ค.
- xcode์์
YourProjectName
์ ํ โBuild Settings
ํญ ์ ํโ ์ข์ธก ์ปฌ๋ผPROJECT
์ ํ ->All
,Combined
์ ํ โExcluded Architectures
ํ์์Any iOS Simulator SDK
์arm64
์ ๋ ฅ
- xcode์์
YourProjectName
์ ํ โBuild Settings
ํญ ์ ํโ ์ข์ธก ์ปฌ๋ผTARGETS
์ ํ ->All
,Combined
์ ํ โExcluded Architectures
ํ์์Any iOS Simulator SDK
์arm64
์ ๋ ฅ
- xcode์์
Pods
ํ๋ก์ ํธ ์ ํ โBuild Settings
ํญ ์ ํโ ์ข์ธก ์ปฌ๋ผPROJECT
์ ํ ->All
,Combined
์ ํ โExcluded Architectures
ํ์์Any iOS Simulator SDK
์arm64
์ ๋ ฅ
pod 'NMapsMap','3.10.1' # ๋ฒ์ 3.10.1 ๋ช
์
์ด์ ๊ธฐ์กด pods ํด๋ ๋ฐ lock ํ์ผ์ ์ญ์ ํ๊ณ ์๋ก ์ธ์คํจํ๋ฉด ์๋ฎฌ๋ ์ดํฐ, ์์ดํฐ์์ ๋น๋๋ฉ๋๋ค.
$ cd /your/project/root/path/ios
$ rm -rf Pods/
$ rm Podfile.lock
$ pod install --repo-update
$ cd /your/project/root/path
# build for simulator
$ yarn ios
# build for physical device using ios-deploy https://stackoverflow.com/a/41632929
$ yarn ios --device="your-iPhone-name"
xcode์์ ๋น๋ํด๋ ์ ๋ฉ๋๋ค.
ํ ์คํธํ๊ฒฝ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
- ๋งฅ๋ถํ๋ก m1
- xcode Version 13.2.1 (13C100)
- ์๋ฎฌ๋ ์ดํฐ Version 13.2.1 (13C100)
- ์์ดํฐX Version 15.1
amd64 -> arm64??
amd64 -> arm64??
@JalibGit ๋ค ์คํ์ ๋๋ค.
@solidchu @yunyeop ๋ ๋ถ์ฒ๋ผ
pod 'NMapsMap','3.10.1'
์ ๋ช ์ํ๋ ๊ฒฝ์ฐ์ m1์์ ์์ดํฐ ๊ธฐ๊ธฐ(iphone X)๋ก ๋น๋๋ฉ๋๋ค. (์๋ฎฌ๋ ์ดํฐ์์ ์ ๋๊ณ ์ ใ ใ ) ํนํ ๋ฒ์ ์
3.10.1
๋ก ์ ํํ๊ฒ ๋ช ์ํ ๊ฒฝ์ฐ๋ง ๋์ต๋๋ค. NMapsMap3.14.1
์ด ์ต์ ๋ฒ์ ์ธ ๊ฒ ๊ฐ์๋ฐ ์ด ๋ฒ์ ์์ ์ ๋์์ต๋๋ค.์กฐ๋ง๊ฐ ์ข์ ํด๊ฒฐ์ฑ ์ด ๋์ค๊ธธ ใ ใ
์ค์ ์ด์ํ๋ค์ ์ ๋ ๊ตณ์ด ๋ช ์ ์ ํด์คฌ์ต๋๋ค.
// ios/Podfile
platform :ios, '11.0'
target 'app' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
...(์๋ต)
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()
pod 'NMapsMap'
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
// ios/Podfile.lock
...
- NMapsMap (3.14.1)
- react-native-nmap (0.0.66):
- NMapsMap
- React
22๋ 4์ 4์ผ ๊ธฐ์ค์ผ๋ก 3.14.2 ๋ฒ์ ์ ์ ์ค๋ฅ์ ๋์ผํ๊ฒ ๋์์ ๋น๋ ์คํจํ๊ตฌ์. 3.14.1 ๋ฒ์ ์ ๋น๋ ๊ฐ๋ฅ๊ฐ๋ฅํ์ต๋๋ค.
- ๊ธฐ๋ก์ ์ํด ๋จ๊น๋๋ค. -
ํ์ฌ 3.15.0์์ apple silicon arch ์ง์ ๊ฐ๋ฅํ๊ฒ๋์์ต๋๋ค
M1์์ 3.15.0 ๋น๋ ์ฑ๊ณตํ์ ๋ถ ๊ณ์ ๊ฐ์? ์ ๋ ์ฌ์ ํ ๊ฐ์ ์๋ฌ ๋ฐ์ํ๋ฉด์ ์๋ฉ๋๋ค
M1 ์์ 3.15.0 ๋ฒ์ ์๋ฎฌ๋ ์ดํฐ arm64 ์ง์ ํด์ฃผ๋๊ฑฐ ํ์ธํ์ต๋๋ค~!
M1์์ 3.15.0 ๋ฒ์ ์ผ๋ก ํ๊ณ , @QuadFlask ๋์ด ์ฌ๋ ค์ฃผ์ ๋๋ก ํด๋ณด์์ผ๋, ์๋ฎฌ๋ ์ดํฐ ๋น๋๊ฐ ์๋ฉ๋๋ค. ์ด์ ์ข ๊ฐ๋ฐํด๋ณด๋ ค๋ ํ๋๋ฐ M1 ์์๋ ๋น๋๊ฐ ์๋๋ค์ ใ ใ ใ ใ ใ ... ํน์ ๋ค๋ฅธ ๋ฒ์ ์ผ๋ก ํด์ผํ๋์?
@nunnu1028 Pods ํด๋, podfile.lock, pod ์บ์ ์ญ์ ์ด๋ ๊ฒ ํ๋ฒ ๋ชจ๋ ์๋ํด๋ณด์๊ฒ ์ด์?
@nunnu1028 Pods ํด๋, podfile.lock, pod ์บ์ ์ญ์ ์ด๋ ๊ฒ ํ๋ฒ ๋ชจ๋ ์๋ํด๋ณด์๊ฒ ์ด์?
3.14.1 ๋ฒ์ ์ผ๋ก ๋ณ๊ฒฝ ํ, ๋ค์ ๋ฐ๋ผํ์ฌ ๋น๋์ ์ฑ๊ณตํ์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.