xcode 第三方库 Incompatible block po

2021-04-29  本文已影响0人  Steven054

Incompatible block pointer types sending 'void (^)(PINMemoryCache *__strong, NSString *__strong, __strong id)' to parameter of type 'PINCacheObjectBlock _Nonnull' (aka 'void (^)(id<PINCaching> _Nonnull __strong, NSString * _Nonnull __strong, id _Nullable __strong)')

解决方案:

在 pod 中的第三方库中家上:

-Xclang -fcompatibility-qualified-id-block-type-checking

实例:


20201112111131488.png
上一篇 下一篇

猜你喜欢

热点阅读