HandyJSON iOS 18 报错 Function type mismatch, declared as '@convention(thin) (UnsafePointer< UInt8>, Int, Optional< UnsafeRawPointer>, Optional< UnsafeRawPointer>) -> Optional< @thick any Any.Type>' but used as '@convention(thin) (UnsafePointer< UInt8>, UInt, Optional< UnsafeRawPointer>, Optional< UnsafeRawPointer>) -> Optional< @thick any Any.Type>'

mnemlml8  于 3个月前  发布在  iOS
关注(0)|答案(2)|浏览(95)

Function type mismatch, declared as '@convention(thin) (UnsafePointer, Int, Optional, Optional) -> Optional<@thick any Any.Type>' but used as '@convention(thin) (UnsafePointer, UInt, Optional, Optional) -> Optional<@thick any Any.Type>'

toe95027

toe950271#

UInt 修改为Int即可

8qgya5xd

8qgya5xd2#

官方已经不维护了,切换成原生的Codable方案吧。 可以考虑SmartCodable三方库。

相关问题