1

After updating to XCode 9.3 I have 1167 warnings saying:

Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior

Is there a way to fix all of them at once? Or if not, is there a way press a keyboard button to activate Fix button on that warning?

ekashking
  • 387
  • 6
  • 19
  • Not saying this is a good idea but you can turn off the warning. In the Build Settings for your target, find the "Implicit retain of 'self' within blocks" warning. – rmaddy Jan 27 '18 at 21:29
  • Possible duplicate of [Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior](https://stackoverflow.com/questions/21577711/block-implicitly-retains-self-explicitly-mention-self-to-indicate-this-is-i) – dandan78 Jan 27 '18 at 21:47
  • I'm backed off to my original question. Multiple fixing is what I'm trying to figure out. The question you mention says nothing about that. – ekashking Jan 27 '18 at 21:52
  • Sadly, I don't believe there is an automated solution for this. – bbum Jan 28 '18 at 00:15

1 Answers1

1

Solution

CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO

enter image description here

Full answer

Vasily Bodnarchuk
  • 24,482
  • 9
  • 132
  • 127