react-native-masked-view / masked-view

React Native Masked View Library
MIT License
976 stars 125 forks source link

Undefined symbols for architecture arm64 with RN 0.65.1 #138

Open tapz opened 3 years ago

tapz commented 3 years ago

After upgrading to RN 0.65.1 I get the following error in Xcode. This is the only pod that fails to link.

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_RCTViewManager", referenced from:
      _OBJC_CLASS_$_RNCMaskedViewManager in RNCMaskedViewManager.o
  "_OBJC_METACLASS_$_RCTViewManager", referenced from:
      _OBJC_METACLASS_$_RNCMaskedViewManager in RNCMaskedViewManager.o
  "_RCTRegisterModule", referenced from:
      +[RNCMaskedViewManager load] in RNCMaskedViewManager.o
  "_OBJC_CLASS_$_RCTView", referenced from:
      _OBJC_CLASS_$_RNCMaskedView in RNCMaskedView.o
  "_OBJC_METACLASS_$_RCTView", referenced from:
      _OBJC_METACLASS_$_RNCMaskedView in RNCMaskedView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
curt-tophatter commented 3 years ago

I'm getting this on v0.64.2 FWIW

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RCTViewManager", referenced from:
      _OBJC_CLASS_$_RNCMaskedViewManager in RNCMaskedViewManager.o
  "_OBJC_METACLASS_$_RCTViewManager", referenced from:
      _OBJC_METACLASS_$_RNCMaskedViewManager in RNCMaskedViewManager.o
  "_RCTRegisterModule", referenced from:
      +[RNCMaskedViewManager load] in RNCMaskedViewManager.o
  "_OBJC_CLASS_$_RCTView", referenced from:
      _OBJC_CLASS_$_RNCMaskedView in RNCMaskedView.o
  "_OBJC_METACLASS_$_RCTView", referenced from:
      _OBJC_METACLASS_$_RNCMaskedView in RNCMaskedView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
curt-tophatter commented 2 years ago

Screen Shot 2021-11-08 at 10 17 45 AM

I just noticed this. I'd expect to see - React-Core here in my Podfile.lock if this library was able to be used in later versions of React.

gbero commented 2 years ago

Ensure you use : "@react-native-masked-view/masked-view": "^0.2.5", in your package.json

and NOT the "@react-native-community/masked-view"

MrWilsonXu commented 2 years ago

hello, I have the same issues, with RN 0.65.1

llauderesv commented 1 year ago

Ensure you use : "@react-native-masked-view/masked-view": "^0.2.5", in your package.json

and NOT the "@react-native-community/masked-view"

This works for me, Thanks a lot! 🥳