I'm having an error in react native ios using xcode 12. I installed react-native-sensors and react-native-share, it seems like they have the same classes. Here's the error.
duplicate symbol '_OBJC_CLASS_$_Utils' in:
/Users/Fennecteck/Library/Developer/Xcode/DerivedData/runm8-aupqcfeohtwloyeyhjaowldkxzbn/Build/Products/Debug-iphoneos/RNSensors/libRNSensors.a(Utils.o)
/Users/Fennecteck/Library/Developer/Xcode/DerivedData/runm8-aupqcfeohtwloyeyhjaowldkxzbn/Build/Products/Debug-iphoneos/RNShare/libRNShare.a(Utils.o)
duplicate symbol '_OBJC_METACLASS_$_Utils' in:
/Users/Fennecteck/Library/Developer/Xcode/DerivedData/runm8-aupqcfeohtwloyeyhjaowldkxzbn/Build/Products/Debug-iphoneos/RNSensors/libRNSensors.a(Utils.o)
/Users/Fennecteck/Library/Developer/Xcode/DerivedData/runm8-aupqcfeohtwloyeyhjaowldkxzbn/Build/Products/Debug-iphoneos/RNShare/libRNShare.a(Utils.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried 'No Common Blocks' from Yes to No but still having this error. Also removing the -ObjC.