jasenhuang/NSObjectSafe

编译时候提示RAC里的文件报错

Opened this issue · 3 comments

Cannot create __weak reference in file using manual reference counting

@jasenhuang 如果使用了ReactiveObjC 设置为 -fno-objc-arc 报错:Cannot create __weak reference in file using manual reference counting 请问有什么办法解决吗?

@ZebZheng @Bone111 xcode setting 里 enable一下就可以,实际上不会有影响,因为NSObjectSafe没有用到RAC

kklwg commented

解决的办法:在Build Settings--------->Apple Clang - Language - Objectibe-C------------->Weak Reference In Manual Retain Release 设置为YES。