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

crash with error "Cannot create an SQL store with a nil URL." #1

Open
ghost opened this issue Apr 30, 2015 · 4 comments
Open

crash with error "Cannot create an SQL store with a nil URL." #1

ghost opened this issue Apr 30, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 30, 2015

When running DemoNotes on iOS 8.3 and 8.1 simulator, it crashes with "Cannot create an SQL store with a nil URL.".
Am I missing some setting or is the app still buggy?
I am using Xcode 6.3.1

@atomicbird
Copy link
Owner

That error probably means you haven't configured app groups for the app, or the extension, or both. It's a necessary part of creating the URL where the persistent store file goes.

@ghost
Copy link
Author

ghost commented May 4, 2015

Thanks for the information, would be good to have that in the readme-file.
I set up the app group now and added it both for DemoNotes and the two extensions in the xcode project. Still I get the above error. Am I still missing something?

@vicchirino
Copy link

Have the same issue.. Are we missing something?

@atomicbird
Copy link
Owner

The only thing I know of that would cause a nil URL would be app groups not being configured properly. That means:

  • Turning on app groups in the project settings for the app and for all extensions
  • Making sure to use the correct app group name when calling containerURLForSecurityApplicationGroupIdentifier: (which I think is only in DemoSharedCode/DemoNoteManager.m).

I should update the README. I was thinking of this project as code people could use for reference, not as anything people would actually download and run as-is.

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

2 participants