objective-cxcode

How to disable Block implicitly retains 'self' warning in Xcode 10


How do you disable this warning in Xcode? I understand the warning message I just want to suppress it.

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


Solution

  • Add -Wno-implicit-retain-self to the appropriate entry in your build settings. For the full list see Diagnostic flags in Clang