skip to Main Content

Im working on maintained of large project. there is lots of warning(790+). most of theme are **

"variable was written to, but never read/Used".

** i tried one by one fixed but its take too much time. so im looking for fix all warning with any way. if you faced this kind of warning or error please let me know the solution.

Thanks in advance. 🙂

Happy Coding.

enter image description here

2

Answers


  1. Fortunately or not, but as one of Swift compiler collaborators stated, ATM it’s not possible to turn off this warning separately from all warnings: https://forums.swift.org/t/how-to-turn-off-unused-variable-warnings/47356

    Login or Signup to reply.
  2. Select Menu Editor > Fix All Issues or press ⌃⌥⌘F.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search