Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SatishRajakXenonstack opened this issue Dec 29, 2023 · 2 comments

Comments

@SatishRajakXenonstack
Copy link

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
Copy link

42geek commented Jan 1, 2024

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
Copy link

prkhrv commented May 6, 2024

@SatishRajakXenonstack Were you able to fix the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants