Skip to content

Instantly share code, notes, and snippets.

@Francescu
Created January 20, 2016 16:51
Show Gist options
  • Save Francescu/9dfdbe52bf224b64ba34 to your computer and use it in GitHub Desktop.
Save Francescu/9dfdbe52bf224b64ba34 to your computer and use it in GitHub Desktop.
1> import Foundation
2> let test = String(contentsOfFile: "/test.txt")
fatal error: init(contentsOfFile:usedEncoding:) is not yet implemented: file Foundation/NSString.swift, line 1304
test: String = {
_core = {
_baseAddress = <extracting data from value failed>
_countAndFlags = <extracting data from value failed>
_owner = <extracting data from value failed>
}
}
Execution interrupted. Enter code to recover and continue.
Enter LLDB commands to investigate (type :help for assistance.)
3> let test = String(contentsOfFile: "/test.txt", encoding: 4)
test: String = "Test\n"
4>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment