facebook / componentkit

A React-inspired view framework for iOS.
http://www.componentkit.org/
Other
5.76k stars 587 forks source link

Compile Error: Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior #964

Open 2965574080 opened 3 years ago

2965574080 commented 3 years ago

Hi experts,

I downloaded the newest version of Xcode and follow all the instructions and open WildeGuess, try to run on simulator.

However, hundreds of "Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior" jump in all locations under componentkit.

diwu commented 3 years ago

Temporary workaround: Add -Wno-implicit-retain-self to ComponentKit and ComponentTextKit build settings

Screen Shot 2021-06-22 at 17 29 38 Screen Shot 2021-06-22 at 17 30 21