facundomedica / fast_qr_reader_view

A Fast QR Reader widget for Flutter. For both Android and iOS
MIT License
294 stars 163 forks source link

Not able to use fast_qr_reader_view 0.1.5 with camera 0.5.2+2 in one flutter project #58

Closed zTrap closed 1 year ago

zTrap commented 5 years ago

In my pubspec.yaml file I have this lines

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)
mikhail-karan commented 4 years ago

I have this same issue now