ishaquehassan / document_scanner_flutter

A document scanner plugin for flutter
MIT License
62 stars 132 forks source link

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

Open SatishRajakXenonstack opened 11 months ago

SatishRajakXenonstack commented 11 months ago

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.

42geek commented 11 months ago

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
prkhrv commented 7 months ago

@SatishRajakXenonstack Were you able to fix the issue?