最近项目中警告⚠️大增,诸如

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

修改方式如下

Building Settings 中搜索字段

CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF 设置为NO即可

附上stackoverflow的解决链接如下 :https://stackoverflow.com/questions/21577711/block-implicitly-retains-self-explicitly-mention-self-to-indicate-this-is-i

相关文章:

  • 2021-12-18
  • 2021-08-19
  • 2021-10-29
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-11-18
  • 2022-01-12
猜你喜欢
  • 2021-12-27
  • 2021-08-18
  • 2021-07-26
  • 2021-12-02
  • 2021-09-05
  • 2022-12-23
相关资源
相似解决方案