QRCode
QRCode copied to clipboard
VideoDetector does not work in new pod version
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)
Is there any update?
@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.
@dagronf I use the cocoa pods. I tried to upgrade the latest version, but there is no QRCodeDetector
library.
@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.