在 iOS系统升级到 13.4的时候,某些系统中的App在使用HandyJSON的时候,会奔溃在 下面这个地方:
public static func write(_ value: Any, to storage: UnsafeMutableRawPointer) {
guard let this = value as? Self else {
return
}
storage.assumingMemoryBound(to: self).pointee = this
}
解决方法:
更新HandyJSON SDK 到 5.0.2-beta
pod 'HandyJSON',git: 'https://github.com/alibaba/handyjson'
然后 执行即可
pod install
参考文档: HandyJSON
网友评论