ekashking
ekashking

Reputation: 447

How to fix multiple similar warnings in Objective C

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?

Upvotes: 1

Views: 1323

Answers (1)

Vasily  Bodnarchuk
Vasily Bodnarchuk

Reputation: 25294

Solution

CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO

enter image description here

Full answer

Upvotes: 1

Related Questions