document_scanner_flutter icon indicating copy to clipboard operation
document_scanner_flutter copied to clipboard

Swift Compiler Error (Xcode): Stored properties cannot be marked unavailable with '@available'

Open SatishRajakXenonstack opened this issue 1 year ago • 2 comments

Platform: Machine: Mac mini Chip: Apple M1 Memory: 16GB macOS: Sonoma 14.1.1 Xcode: 15.1 Flutter : Flutter 3.13.9 • channel stable Dart : 3.1.5 document_scanner_flutter version: document_scanner_flutter: ^0.2.7 Error: "Swift Compiler Error (Xcode): Stored properties cannot be marked unavailable with '@available'" Screenshot 2023-12-25 at 8 07 40 PM

I have described issue in my flutter project when i am using document_scanner_flutter. when i am running project using command "flutter run". Please provide solution or any suggestion. Thank you.

SatishRajakXenonstack avatar Dec 29 '23 08:12 SatishRajakXenonstack

Go to 'ImageScannerController.swift' file and remove "unavailable" from these properties: 'originalImage', 'scannedImage', 'enhancedImage', 'doesUserPreferEnhancedImage'.

You will need to do it manually every time you install the pods until the will fix it or something.

Before: Screenshot 2024-01-01 at 13 56 34

After: Screenshot 2024-01-01 at 13 56 42

42geek avatar Jan 01 '24 12:01 42geek

@SatishRajakXenonstack Were you able to fix the issue?

prkhrv avatar May 06 '24 15:05 prkhrv