Lightbox icon indicating copy to clipboard operation
Lightbox copied to clipboard

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

Open nawinest opened this issue 1 year ago • 1 comments

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:

  • Swift version: 6
  • Xcode version: 16 beta
  • Pod name and version: 2.5.0

Thank you for your time and support.

image

nawinest avatar Jun 28 '24 15:06 nawinest

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.

3lvis avatar Jun 28 '24 20:06 3lvis