Skip to content

Swift3 and GlimpseXML after converting from Swift2 #10

@anji-fosms

Description

@anji-fosms

Hi All,
After converting the GlimpseXML from Swift to Swift3 i am getting the below error

" ‘init’ is unavailable: use ‘withMemoryRebound(to:capacity:)’ to temporarily view memory as another layout-compatible type_."

at the line if let str = stringFromFixedCString(UnsafeBufferPointer(start: UnsafePointer(buf), count: Int(buflen))) {
string = str
}
in serialize(indent: Bool = false) and serialize(indent: Bool = false, encoding: String? = "utf8") functions of GlimpseXML.swift file. I have tried to address these issues but could not succeeded. Please give me some suggestions in this regard.

Thanks
Anji

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions