error: writable atomic property cannot pair a synthesized setter/getter with a user defined setter/getter

后端 未结 4 935
无人共我
无人共我 2020-11-29 16:53

I recently tried to compile an older Xcode project (which used to compile just fine), and now I\'m seeing a lot of errors of this form:

error: w

4条回答
  •  孤城傲影
    2020-11-29 17:16

    For others who are getting this error not for the reason OP described, you likely have the same issue as me:

    You have a @property with the same name as a -()method.

    Something like this:

    @property UIView *mainView;
    
    -(UIView *)mainView;
    

提交回复
热议问题