react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Undefined symbols for architecture arm64

Open nolife08021 opened this issue 2 years ago • 1 comments

Description

Hi, can someone please help me to solve this? I keep trying for few days already , but still failed to build it.

Undefined symbols for architecture arm64: "OBJC_METACLASS$_RCTView", referenced from: OBJC_METACLASS$_SafeAreaSpacerView in SafeAreaSpacerView.o "_RCTScreenScale", referenced from: -[SafeAreaSpacerView safeAreaInsetsDidChange] in SafeAreaSpacerView.o "OBJC_METACLASS$_RCTShadowView", referenced from: OBJC_METACLASS$_SafeAreaSpacerShadowView in SafeAreaSpacerShadowView.o "OBJC_CLASS$_RCTShadowView", referenced from: OBJC_CLASS$_SafeAreaSpacerShadowView in SafeAreaSpacerShadowView.o "OBJC_CLASS$_RCTEventEmitter", referenced from: OBJC_CLASS$_RCTCustomInputControllerTemp in RCTCustomInputControllerTemp.o OBJC_CLASS$_SafeAreaManager in SafeAreaManager.o "_RCTRegisterModule", referenced from: +[HighlighterViewManager load] in HighlighterViewManager.o +[KeyboardTrackingViewTempManager load] in KeyboardTrackingViewTempManager.o +[RCTCustomInputControllerTemp load] in RCTCustomInputControllerTemp.o +[SafeAreaManager load] in SafeAreaManager.o +[SafeAreaSpacerViewManager load] in SafeAreaSpacerViewManager.o "OBJC_CLASS$_RCTConvert", referenced from: _OBJC$CATEGORY_RCTConvert$_KeyboardTrackingScrollBehavior in KeyboardTrackingViewTempManager.o objc-class-ref in RCTCustomInputControllerTemp.o "OBJC_CLASS$_RCTScrollView", referenced from: objc-class-ref in KeyboardTrackingViewTempManager.o "OBJC_CLASS$_RCTRootView", referenced from: objc-class-ref in KeyboardTrackingViewTempManager.o objc-class-ref in RCTCustomInputControllerTemp.o "_RCTContentDidAppearNotification", referenced from: -[KeyboardTrackingViewTemp init] in KeyboardTrackingViewTempManager.o "OBJC_METACLASS$_RCTEventEmitter", referenced from: OBJC_METACLASS$_RCTCustomInputControllerTemp in RCTCustomInputControllerTemp.o OBJC_METACLASS$_SafeAreaManager in SafeAreaManager.o "__RCTLogNativeInternal", referenced from: ___68-[KeyboardTrackingViewTempManager getNativeProps:resolver:rejecter:]_block_invoke in KeyboardTrackingViewTempManager.o ___49-[KeyboardTrackingViewTempManager scrollToStart:]_block_invoke in KeyboardTrackingViewTempManager.o "_RCTConvertEnumValue", referenced from: +[RCTConvert(KeyboardTrackingScrollBehavior) KeyboardTrackingScrollBehavior:] in KeyboardTrackingViewTempManager.o "OBJC_CLASS$_RCTView", referenced from: OBJC_CLASS$_SafeAreaSpacerView in SafeAreaSpacerView.o "OBJC_CLASS$_RCTViewManager", referenced from: OBJC_CLASS$_HighlighterViewManager in HighlighterViewManager.o OBJC_CLASS$_KeyboardTrackingViewTempManager in KeyboardTrackingViewTempManager.o OBJC_CLASS$_SafeAreaSpacerViewManager in SafeAreaSpacerViewManager.o "OBJC_METACLASS$_RCTViewManager", referenced from: OBJC_METACLASS$_HighlighterViewManager in HighlighterViewManager.o OBJC_METACLASS$_KeyboardTrackingViewTempManager in KeyboardTrackingViewTempManager.o OBJC_METACLASS$_SafeAreaSpacerViewManager in SafeAreaSpacerViewManager.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Steps to reproduce

  1. yarn add react-native-ui-lib
  2. cd ios && pod install

Expected behavior

Build Successful.

Actual behavior

Failed to build in simulator and physical devices.



Screenshots/Video

Screenshot 2022-10-03 at 11 52 37 AM

Environment

  • React Native version: 0.68.1
  • React Native UI Lib version: 6.21.2

Affected platforms

  • [ ] Android
  • [X] iOS
  • [ ] Web

nolife08021 avatar Oct 03 '22 03:10 nolife08021

Up, any workaround?

donnes avatar Oct 17 '22 17:10 donnes

any workaround?

nikitph avatar Oct 31 '22 15:10 nikitph

i made it work. Clean everything rm -rf node_modules cd ios pod deintegrate cd .. nvm use 17.0.0 yarn i cd ios pod install and build through xcode

nikitph avatar Oct 31 '22 15:10 nikitph

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 31 '22 20:12 stale[bot]