Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoDetector does not work in new pod version #27

Open
newbision opened this issue Jul 18, 2023 · 4 comments
Open

VideoDetector does not work in new pod version #27

newbision opened this issue Jul 18, 2023 · 4 comments

Comments

@newbision
Copy link

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
Copy link
Author

Is there any update?

@dagronf
Copy link
Owner

dagronf commented Jul 19, 2023

@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+

@newbision
Copy link
Author

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

@dagronf
Copy link
Owner

dagronf commented Jul 21, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants