WeScan icon indicating copy to clipboard operation
WeScan copied to clipboard

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

Open Tom3652 opened this issue 8 months ago • 1 comments

Hello,

When i build my iOS app using the latest version, i have an error with the latest Xcode version :

Swift Compiler Error (Xcode): Stored properties cannot be marked unavailable with '@available'
/Users/foxtom/AndroidStudioProjects/myProject/ios/Pods/WeScan/WeScan/ImageScannerController.swift:196:5

I have to comment manually the @available decorators to be able to build :

//@available(*, unavailable, renamed: "originalScan")
public var originalImage: UIImage?

//@available(*, unavailable, renamed: "croppedScan")
public var scannedImage: UIImage?

//@available(*, unavailable, renamed: "enhancedScan")
public var enhancedImage: UIImage?

//@available(*, unavailable, renamed: "doesUserPreferEnhancedScan")
public var doesUserPreferEnhancedImage: Bool = false

Thanks !

Tom3652 avatar May 12 '25 08:05 Tom3652

This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jun 12 '25 00:06 github-actions[bot]