mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 463 forks source link

[Bug]Can't build project by XCode 12 (after update) #289

Open torindev opened 4 years ago

torindev commented 4 years ago

BUG REPORTS WITHOUT PROVIDING THESE INFORMATIONS WILL BE CLOSED DIRECTLY. DON'T REMOVE THE SECTIONS!

Describe the bug Can't build project using barcode_scanner by XCode 12 (after update). Error:

Header 'SwiftProtobuf-Swift.h' not found

module SwiftProtobuf.Swift {
    header "SwiftProtobuf-Swift.h".      <-----
    requires objc
}

To Reproduce Steps to reproduce the behavior:

  1. Try to build project in XCode 12, using barcode_scanner
  2. Got fail

Expected behavior

  1. Try to build project in XCode 12, using barcode_scanner
  2. Got success

Screenshots Screenshot at Sep 18 11-39-27

Logs

<unknown>:0: error: could not build Objective-C module 'SwiftProtobuf'

Environment (please complete the following information):



**Additional context**
Add any other context about the problem here.
devtronic commented 4 years ago

Maybe we can fix the problem by migrating to pigeon (https://github.com/mintware-de/flutter_barcode_reader/issues/281)