Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS8 crash #66

Closed
0xIce opened this issue Jan 15, 2018 · 2 comments
Closed

iOS8 crash #66

0xIce opened this issue Jan 15, 2018 · 2 comments

Comments

@0xIce
Copy link

0xIce commented Jan 15, 2018

env: XCode9/swift4
crashed on ios8/iphone6
dyld: Symbol not found: _NSCharacterEncodingDocumentOption

@iDevPro
Copy link

iDevPro commented Jan 16, 2018

replace init in NSAttributedString+HTML.swift and try again :)

 convenience init(htmlString: String) throws {
        guard let data = htmlString.data(using: String.Encoding.utf8) else {
            throw DownErrors.htmlDataConversionError
        }

        try self.init(data: data, options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: String.Encoding.utf8.rawValue] , documentAttributes: nil)
    }

@iwasrobbed
Copy link
Collaborator

Thanks @iDevPro

Just a note: We'll be formally removing iOS 8 support from upcoming releases (as iOS 11 adoption is pretty high), so please fork this library if you still need to support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants