handyJson Xcode 9.3 崩溃问题 解决方案

    var nominalTypeDescriptor: NominalTypeDescriptor? {

        let pointer = UnsafePointer<Int>(self.pointer)

        let base = pointer.advanced(by: nominalTypeDescriptorOffsetLocation)

        if base.pointee == 0 {

            // swift class created dynamically in objc-runtime didn't have valid nominalTypeDescriptor

            return nil

        }

        #if swift(>=4.1)

        return NominalTypeDescriptor(pointer: relativePointer(base: base, offset: base.pointee - base.hashValue))

        #else

        return NominalTypeDescriptor(pointer: relativePointer(base: base, offset: base.pointee))

        #endif

    }

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页