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

但验证podspec文件正确性,并且依赖了某些第三方的时候,比如SDWebImage, 可能会出现下面的错误:

/var/folders/02/c9zfh1097t500m37ts3v5mrm0000gn/T/CocoaPods/Lint/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.h:64:1: error: property with 'retain (or strong)' attribute must be of object type
@property (strong, nonatomic, nonnull) dispatch_queue_t prefetcherQueue;

这是因为在iOS 6.0之下的版本中, dispatch_queue_t 并没有交由ARC托管,所以只需要将podspec中的 s.platform 修改为6.0及之上即可。

你可能感兴趣的:(Property with 'retain (or strong)' attribute must be of object type)