NSLinux icon indicating copy to clipboard operation
NSLinux copied to clipboard

Error: 'fromCString' is unavailable

Open Sneagan opened this issue 9 years ago • 1 comments

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.

Sneagan avatar Apr 22 '16 05:04 Sneagan

Please see https://github.com/johnno1962/NSLinux/issues/3

johnno1962 avatar Apr 22 '16 05:04 johnno1962