HandyJSON
HandyJSON copied to clipboard
使用xcode 13 beta3 在ios15系统上跑必崩溃
遇到了同样的问题,坐等解决办法

通遇到
0 libswiftCore.dylib 0x00000001856fdfd0 swift::TargetMetadataswift::InProcess::isCanonicalStaticallySpecializedGenericMetadata() const + 204 (Metadata.h:1265)
1 libswiftCore.dylib 0x000000018570a428 swift_checkMetadataState + 44 (Metadata.cpp:5459)
2 libswiftCore.dylib 0x000000018572c6ac getSuperclassForMaybeIncompleteMetadata(swift::TargetMetadataswift::InProcess const*, __swift::__runtime::llvm::Optionalswift::MetadataState) + 252 (ProtocolConformance.cpp:152)
3 libswiftCore.dylib 0x000000018572bc40 swift_conformsToProtocolImpl(swift::TargetMetadataswift::InProcess const*, swift::TargetProtocolDescriptorswift::InProcess const*) + 276 (ProtocolConformance.cpp:219)
4 HandyJSON 0x0000000105e54454 dynamic_cast_existential_1_conditional + 16 (
develop 分支先尝试一下能否解决
分支先尝试一下能否解决
develop 已经做了修改?
develop 没问题,不崩溃。能发正式版本吗
把这句代码替换了应该就可以 if !(superclass is HandyJSON) && !(superclass is HandyJSONEnum) { // if !(superclass is HandyJSON.Type) && !(superclass is HandyJSONEnum.Type) {
俺也一样,希望尽快解决下。
风险这么大吗?都不敢用了
更新了iOS15 beta4 这个问题就不存在了
把这句代码替换了应该就可以 if !(superclass is HandyJSON) && !(superclass is HandyJSONEnum) { // if !(superclass is HandyJSON.Type) && !(superclass is HandyJSONEnum.Type) {
如果这么改,在有子类集成的情况下,会导致子类model解析数据失败