Skip to content

Error: 'fromCString' is unavailable #2

@Sneagan

Description

@Sneagan

I'm trying to build a project that depends on this library and am getting the following error in multiple locations:

Packages/NSLinux-1.1.0/Sources/NSString.swift:127:26: error: 'fromCString' is unavailable: Please use String.init?(validatingUTF8:) instead. Note that it no longer accepts NULL as a valid input. Also consider using String(cString:), that will attempt to repair ill-formed code units.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions