但驗(yàn)證podspec文件正確性,并且依賴了某些第三方的時(shí)候,比如SDWebImage
, 可能會(huì)出現(xiàn)下面的錯(cuò)誤:
/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;
這是因?yàn)樵趇OS 6.0之下的版本中, dispatch_queue_t 并沒有交由ARC托管,所以只需要將podspec中的 s.platform
修改為6.0及之上即可。