Skip to content

'devices(for:)' was deprecated in macOS #1558

@hurelhuyag

Description

@hurelhuyag

I found this when trying to launch in macOS

.pub-cache/hosted/pub.dev/mobile_scanner-7.1.2/darwin/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift:384:38: warning: 'devices(for:)' was deprecated in macOS 10.15: Use AVCaptureDeviceDiscoverySession instead.
            device = AVCaptureDevice.devices(for: .video).filter({$0.position == position}).first
                                     ^
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmacosPlatform macos

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions