johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.56k stars 565 forks source link

build error for AFNetworking 2.0 ERROR:Property with 'retain (or strong)' attribute must be of object type #24

Closed yushuyi closed 10 years ago

yushuyi commented 10 years ago

CocoaPods pod AFNetworking + injectionforxcode

build error image

Property with 'retain (or strong)' attribute must be of object type

why ?

johnno1962 commented 10 years ago

I don’t know why you only get this error when injecting but I don’t think dispatch_group_t is an object so I would have thought you shouldn’t be trying to retain it with a strong property!