QRCode icon indicating copy to clipboard operation
QRCode copied to clipboard

VideoDetector does not work in new pod version

Open newbision opened this issue 1 year ago • 4 comments

I upgraded the pod library to the latest(16.0.1). But 'QRCodeDetector' can not find in this scope.

  • Xcode: 14.3.1
  • OS: 13.4.1 (c) (22F770820d) Screenshot 2023-07-18 at 1 49 33 PM

newbision avatar Jul 18 '23 11:07 newbision

Is there any update?

newbision avatar Jul 19 '23 13:07 newbision

@newbision Are you using cocoa pods or Swift package manager?

If you're using Swift Package Manager, you'll additionally need to link the QRCodeDetector library (it's an additional target within the same package).

The video detector has been separated into its own target so that the base QRCode library doesn't force developers to get camera permissions when put on the App Store.

See the updated documentation for 16+

dagronf avatar Jul 19 '23 18:07 dagronf

@dagronf I use the cocoa pods. I tried to upgrade the latest version, but there is no QRCodeDetector library.

newbision avatar Jul 21 '23 23:07 newbision

@newbision Until I can sort out how to handle the cocoapods issue, a workaround is to just copy the source file QRCode/Sources/QRCodeDetector/QRCodeDetector+VideoDetector.swift into your own project.

I'm not yet sure how I am going to handle multiple targets in a cocoapod podspec file, but I'm working on it.

dagronf avatar Jul 21 '23 23:07 dagronf