dimitris-c / AudioStreaming

An AudioPlayer/Streaming library for iOS written in Swift using AVAudioEngine.
MIT License
224 stars 49 forks source link

App based on AudioStreaming crashed when compiled for release #84

Open op183 opened 1 month ago

op183 commented 1 month ago

I tested simple cli utility which occasionally crash if compiled in release mode. It never crashed if compiled in debug mode :-). Please check https://developer.apple.com/documentation/os/osallocatedunfairlock

What is apple suggested?

If you’ve existing Swift code that uses os_unfair_lock, change it to use OSAllocatedUnfairLock to ensure correct locking behavior.

dimitris-c commented 1 month ago

Hey, OSAllocatedUnfairLock is only available on iOS 16+, might take some time to add it for iOS 16+ only