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>'
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>'
2条答案
按热度按时间toe950271#
UInt 修改为Int即可
8qgya5xd2#
官方已经不维护了,切换成原生的Codable方案吧。 可以考虑SmartCodable三方库。