Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

run crashed:fatal error: unexpectedly found nil while unwrapping an Optional value #28

Closed
gclsoft opened this issue Jan 26, 2015 · 1 comment

Comments

@gclsoft
Copy link

gclsoft commented Jan 26, 2015

lazy var dataDirectory: NSURL = {
    // The directory the application uses to store the Core Data store file. This code uses a directory named "com.LexTang.VPNOn" in the application's documents Application Support directory.
        return NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(kAppGroupIdentifier)!// at this line!!!
    }()
@lexrus
Copy link
Owner

lexrus commented Jan 26, 2015

Have you turn on the App Groups in capabilities for both target?

@lexrus lexrus closed this as completed Jan 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants