dmrschmidt / DSWaveformImage

Generate waveform images from audio files on iOS, macOS & visionOS in Swift. Native SwiftUI & UIKit views.
MIT License
978 stars 109 forks source link

Compile error in Xcode 15 beta. #72

Closed CacereLucas closed 1 year ago

CacereLucas commented 1 year ago

Hi, I have a compile error in the Xcode 15 beta (this does not happen in Xcode 14.3). The error is in the WaveformImageType file on line 143 and it says "Stored properties cannot be marked unavailable with '@available'". I'm using the latest version of the package.

Any idea of what it could be?

Thank you!

Captura de pantalla 2023-06-08 a las 14 30 25
dmrschmidt commented 1 year ago

Thanks for reporting this @CacereLucas. I assume Xcode 15 does not allow this way of marking things as deprecated anymore. Haven't confirmed it yet (still downloading Xcode) but seems to be a fair assumption.

Now unfortunately I missed my chance to just remove this property in v13.0.0. Guess I'll just release a v14 now since it's been marked as deprecated for long enough.

I'll make sure everything else compiles in Xcode 15 and then push a new release soon.

dmrschmidt commented 1 year ago

OK scratch that. I wrongly assumed you were on the latest version and I didn't double-check the code before.

This has in fact already been removed in 11.0.1 or to be precise in https://github.com/dmrschmidt/DSWaveformImage/commit/89d937ed1b4845372068074ce27c20708cdd4101.

So you'll need to update to at least that version, ideally 13.0.1 though, which is the current version.

I also just confirmed that this compiles in Xcode 15 and runs on iOS 17 beta.