document_scanner_flutter
document_scanner_flutter copied to clipboard
Swift Compiler Error (Xcode): Stored properties cannot be marked unavailable with '@available'
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'"
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.
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:
After:
@SatishRajakXenonstack Were you able to fix the issue?