CodeScanner icon indicating copy to clipboard operation
CodeScanner copied to clipboard

Cannot build for Mac Catalyst

Open Terabyte1385 opened this issue 3 years ago • 3 comments

This package claims to be able to run on Mac Catalyst 14 or later, but I cannot build my project for Mac Catalyst because some @available lines are missing (according to Xcode).

Errors Found: ScannerViewController.swift:12:11: 'CodeScannerView' is only available in Mac Catalyst 14.0 or newer ScannerCoordinator.swift:12:11: 'CodeScannerView' is only available in Mac Catalyst 14.0 or newer CodeScanner.swift:32:22: 'AVMetadataObject' is only available in Mac Catalyst 14.0 or newer

If it matters, the project is aimed at iOS 15 and macOS 12.

AVMetadataObject, for example, requires Mac Catalyst 14 or later, and this package is capable to handle AVMetadataObject correctly, but for some reason Xcode cannot build.

Terabyte1385 avatar Feb 03 '22 17:02 Terabyte1385

Screenshot 2022-02-03 at 20 04 12

Terabyte1385 avatar Feb 03 '22 18:02 Terabyte1385

I am having the same issue macOS 12, catalyst 15

garthvh avatar Feb 27 '22 17:02 garthvh

I'm having the same issue, can anyone help?

NgocLK avatar May 03 '22 17:05 NgocLK