hyperoslo / Lightbox

:milky_way: A convenient and easy to use image viewer for your iOS app
https://www.hyper.no
Other
1.61k stars 326 forks source link

Concurrency-related build error in Swift 6 due to non-isolated static property #300

Open nawinest opened 1 week ago

nawinest commented 1 week ago

With the introduction of stricter concurrency rules in Swift 6, we've encountered a critical build error in our project that we're unable to resolve due to its origin in a pod dependency. The specific error message is:

Static property 'image' is not concurrency-safe because it is non-isolated global shared mutable state

This error is preventing our entire application from building successfully. As the issue stems from a pod, we don't have direct control over the code causing the problem.

Are there any temporary workarounds we could implement in our project to bypass this error while a more permanent solution is developed? or Lightbox developer will fix it soon?

Any assistance or insights would be greatly appreciated as this is blocking our development process.

Environment:

Thank you for your time and support.

image
3lvis commented 1 week ago

Hi @nawinest,

This isn't an actively maintained Library. I would suggest you create a fork and manage the dependency in a way that better suits your needs.

Having said that I would be happy to review any PR that improves this issue.