pinterest / PINCache

Fast, non-deadlocking parallel object cache for iOS, tvOS and OS X
Apache License 2.0
2.66k stars 361 forks source link

Error in xcode12 compilation #284

Closed zhouxubin closed 3 years ago

zhouxubin commented 3 years ago

When I upgraded to xcode12, the compiler reported 23 errors in the morning

Incompatible block pointer types initializing '__strong PINCacheObjectBlock' (aka 'void (^__strong)(id<PINCaching> _Nonnull __strong, NSString * _Nonnull __strong, id _Nullable __strong)') with an expression of type 'PINDiskCacheObjectBlock _Nullable __strong' (aka 'void (^__strong)(PINDiskCache * _Nonnull __strong, NSString * _Nonnull __strong, id<NSCoding> _Nullable __strong)')

Mammadbayli commented 3 years ago

I also have the same problem, downgraded to 11.7 for now.

abuzzworld commented 3 years ago

emmmmm

Plnda commented 3 years ago

https://github.com/pinterest/PINCache/pull/281 this PR will fix it

garrettmoon commented 3 years ago

@zhouxubin can you confirm you are using 3.0.1?

unamed000 commented 3 years ago

I'm having the exact problem

garrettmoon commented 3 years ago

@unamed000 what version of PINCache are you using?

unamed000 commented 3 years ago

@garrettmoon I'm using version 3.0.1-beta.6

EDIT: This PR fixed my issue: https://github.com/pinterest/PINCache/pull/281/commits/5f58a39ec818529e6b456fa3d9069fc9959eff75

Could you please make a beta version for this? :)

theoneit commented 3 years ago

was it fixed? any update?

garrettmoon commented 3 years ago

@unamed000 3.0.1 was released, please update!