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
EXC_BAD_ACCESS on initialization #7
Comments
this is Xcode 7 and Swift 2 |
Weird. Do you have a stack trace? |
|
Thanks! It doesn't tell much :-) OK I'm not sure, but the |
i had previously tried without the / - you got the stack trace from my "let's give it one more attempt but change the path" stack trace. |
Will you try with the following code, please? let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as! NSString
let databasePath = documentsPath.stringByAppendingPathComponent("db.sqlite")
dbQueue = try DatabaseQueue(path: databasePath) |
i just did that, right as you were posting, and managed to get it to work. thanks! |
|
Happy we solved it! Happy GRDB! |
in
DatabaseQueue.init()
:results in
EXC_BAD_ACCESS (code=EXC_i386_GPFLT)
code in my ViewController looks like this:
Any ideas on working around this?
The text was updated successfully, but these errors were encountered: