Closed zTrap closed 1 year ago
In my pubspec.yaml file I have this lines
pubspec.yaml
dependencies: <...> fast_qr_reader_view: ^0.1.5 camera: ^0.5.2+2
I trying to build project on iPhone XR simulator and XCode gives this outputs
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === duplicate symbol _OBJC_IVAR_$_FLTCam._captureVideoOutput in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._videoWriterInput in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._captureVideoInput in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._assetWriterPixelBufferAdaptor in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._videoWriter in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._latestPixelBuffer in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._captureSession in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_CLASS_$_FLTCam in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_METACLASS_$_FLTCam in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._eventChannel in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._eventSink in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._previewSize in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._captureSize in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._onFrameAvailable in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._captureDevice in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol _OBJC_IVAR_$_FLTCam._textureId in: <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o) <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) ld: 16 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have this same issue now
In my
pubspec.yaml
file I have this linesI trying to build project on iPhone XR simulator and XCode gives this outputs