SocketMobile / capturesdk_flutter

Public snapshot for flutter sdk
MIT License
3 stars 1 forks source link

Duplicated symbols #1

Closed ricardochen closed 1 year ago

ricardochen commented 2 years ago

I'm getting the following error of "ld: 43 duplicate symbols for architecture arm64" Already cleaned pod files and build folders.

any advice?

duplicate symbol '_main' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/AppDelegate.o /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_ecdsa.o) duplicate symbol '_main' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/AppDelegate.o /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_compress.o) duplicate symbol '_main' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/AppDelegate.o /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_ecdh.o) duplicate symbol '_vli_print' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_compress.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_ecdh.o) duplicate symbol '_main' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/AppDelegate.o /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_compute.o) duplicate symbol '_vli_print' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_compress.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(test_compute.o) duplicate symbol 'CSktSoftScanDeviceObject::Initialize(char const, unsigned long)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::GetProperty(TSktCaptureObject, ESktDestination, bool*, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::IsSupported()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::SetProperty(TSktCaptureObject, ESktDestination, bool, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::Deinitialize()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::sendDecodedData(char const, ESktCaptureDataSourceID)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadDecodeAction(TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::SaveConfiguration()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::WriteDecodeAction(unsigned char, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::cancelDecodedData()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::GetSoftScanChangeID(TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadSoftScanVersion(TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadDataSourceStatus(TSktCaptureDataSource, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadSoftScanPreamble(TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ConfigureDecodeAction(unsigned char)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadDecodeActionValue(unsigned char*)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadSoftScanPostamble(TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::UpdateDataSourcesList(CSktXmlTag)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::WriteDataSourceStatus(TSktCaptureDataSource, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::WriteSoftScanPreamble(char const, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::RetrieveDataSourcesTag(CSktXmlTag)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::WriteSoftScanPostamble(char const, TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ReadSoftScanFriendlyName(TSktCaptureObject)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ConvertBackslashCharacter(char const, char, int)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::WriteSoftScanFriendlyName(char const*, TSktCaptureObject*)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::ConfigureScannerWithSettings()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::InterpreteBackSlashCharacter(char)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::CSktSoftScanDeviceObject(void)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::CSktSoftScanDeviceObject()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::CSktSoftScanDeviceObject(void)' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::CSktSoftScanDeviceObject()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::~CSktSoftScanDeviceObject()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::~CSktSoftScanDeviceObject()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'CSktSoftScanDeviceObject::~CSktSoftScanDeviceObject()' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'typeinfo for CSktSoftScanDeviceObject' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'typeinfo name for CSktSoftScanDeviceObject' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) duplicate symbol 'vtable for CSktSoftScanDeviceObject' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o) /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o) ld: 43 duplicate symbols for architecture arm64

mcsocket commented 2 years ago

Hi @ricardochen, this error appears to be in the Objective C code of your app. I am assuming when you say you cleaned out pods you tried either using pod deintegrate or deleting podfile and podfile.lock. Since that didn't work here are some alternatives you can try:

  1. Try running flutter clean and flutter run -d
  2. Double check your Objective C imports and make sure there aren't any duplicates.
  3. Ensure your imports are using the proper file extension (.h for header, .m for method/implementation) depending on their usage.
  4. Make sure you only have one main method described in your project.
  5. Try opening the project in Xcode and go to targets. Find the build settings for the target, find the setting for "No Common Blocks" and then set it to "No".

There are some more potential solutions here.

If the problem persists, please reply with a brief order of events and any accompanying code.

ricardochen commented 2 years ago

Thanks for your response,

I tried everything during these days, I narrowed it down to a conflict between a tflite (tensor flow lite) package and capturesdk, that have nothing to do with each other, I cannot figure out why is it happening.

If you look at the log, it shows duplicates on the same capturesdk file, for example:

duplicate symbol 'vtable for CSktSoftScanDeviceObject' in: /Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc648805d4ee5f78e138421d06404d2d6a01.o)

/Users/ricardochen/Library/Developer/Xcode/DerivedData/Runner-aefhmufjroietjhgxuhjbbytirfc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a(SktSoftScanDeviceObject-670dbf14c4309e72c0459c654231fc641f140a990de5f41f2f0e9201b1c27106.o)

both "duplicated" comes from XCFrameworkIntermediates/SKTCaptureObjC/libCapture.a

I compared both podspec and as expected, they have nothing in common:

https://github.com/am15h/tflite_flutter_plugin/blob/master/ios/tflite_flutter.podspec https://github.com/SocketMobile/capturesdk_flutter_snapshot/blob/main/ios/capturesdk.podspec

Any ideas?

socketPM commented 2 years ago

@ricardochen we are working on this issue. Hopefully we can give you an update by this Friday(4/22). In the meantime, maybe check out this thread see if it might help you? https://github.com/SocketMobile/cocoapods-capture/issues/29

socketPM commented 2 years ago

@ricardochen We fixed the duplicates issue and here's a beta version for you to test. And here's the instruction:

  1. Download the SKTCapture and unzip it at the same level of the project using it. capture-sdk-1.3.261.zip
  2. In your podfile change the line where SKTCapture is declared by pod 'SKTCapture', :path => '../capture-sdk-1.3.261'.
  3. In your terminal, make a pod install
  4. If your project contains already Swift files, Go to step 7. If not, continue this procedure
  5. Add a Swift file to your project and name it as you wish
  6. When Xcode prompts you to create a bridging header file, accept it
  7. Add @import SKTCapture; in the files using SKTCapture

You should build and run your project now.

Let us know if you run into any issues.

ricardochen commented 2 years ago

@socketPM Thanks for the update, I actually don't know how to apply these instructions as a flutter plugin.

ricardochen commented 2 years ago

I managed to update the plugin by: 1) clonning this repo locally (flutter plugin) 2) Edit capturesdk.podspec of the plug and replace this line: s.dependency 'SKTCaptureObjC', '~>1.3' with: s.dependency 'SKTCapture', '1.3.261' 3) download and extract the provided zip 4) In the project pod file add: pod 'SKTCapture', :path => '../capture-sdk-1.3.261'

It works when I dont have tflie included in the pubspec, just like with the old version, however when I add the other dependency its showing me even more duplicates (all from libCapture.a(CoreBluetoothCapture.o)):

    /Users/ricardochen/Documents/github/scannertest/build/ios/Debug-iphoneos/XCFrameworkIntermediates/SKTCapture/libCapture.a(CoreBluetoothCapture.o)
duplicate symbol '_kValueName' in:
    /Users/ricardochen/Documents/github/scannertest/build/ios/Debug-iphoneos/XCFrameworkIntermediates/SKTCapture/libCapture.a(CoreBluetoothCapture.o)
duplicate symbol '_seperatorstr' in:
    /Users/ricardochen/Documents/github/scannertest/build/ios/Debug-iphoneos/XCFrameworkIntermediates/SKTCapture/libCapture.a(CoreBluetoothCapture.o)
duplicate symbol '_sperator' in:
    /Users/ricardochen/Documents/github/scannertest/build/ios/Debug-iphoneos/XCFrameworkIntermediates/SKTCapture/libCapture.a(CoreBluetoothCapture.o)
ld: 1483 duplicate symbols for architecture arm64
socketPM commented 2 years ago

sorry @ricardochen I forgot you are using Flutter. We are looking into it again and will get back to you soon.

socketPM commented 2 years ago

@ricardochen can you please test this version? capture-sdk-1.3.263.zip Thanks.