I am encountering an issue in my React-Native project after installing vision-camera-code-scanner. When attempting to build the project in XCode, I am faced with the following error message:
duplicate symbol '_OBJC_CLASS_$_GDTCCTCompressionHelper' in:
/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport.o
/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport/libGoogleDataTransport.a(GDTCCTCompressionHelper.o)
duplicate symbol '_OBJC_METACLASS_$_GDTCCTCompressionHelper' in:
/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport.o
/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport/libGoogleDataTransport.a(GDTCCTCompressionHelper.o)
[...]
ld: 105 duplicate symbols for architecture arm64
Upon reviewing the log, it appears that the duplicate symbols are found in these files:
GoogleDataTransport.o
libGoogleDataTransport.a
GoogleUtilities_Environment.o
libGoogleUtilities.a
GoogleUtilities_Logger.o
libGoogleUtilities.a
GoogleUtilities_UserDefaults.o
libGoogleUtilities.a
FBLPromises.o
libPromisesObjC.a
I have attempted to identify and remove duplicate files without success: https://i.sstatic.net/Iw74E.png
Being new to React-Native, I am seeking guidance on resolving this duplicate symbols error. Any suggestions would be greatly appreciated.