Fix error when creating databases on tvOS devices#470
Conversation
I don't think that is the correct move. That will cause people to unknowingly store their database in a place that can be deleted at any moment. Please revert that change. People who develop for tvOS will just have to know that they need to provide a URL to |
…port On tvOS, `.applicationSupportDirectory` is unavailable, so switch to `.cachesDirectory` for the default database path. Also remove redundant `createDirectory` calls that are now handled by `FileManager.default.url(create:true)`.
bb5f7df to
7977f7b
Compare
|
@mbrandonw I reverted that change and updated the PR description + title to reflect the changes. |
mbrandonw
left a comment
There was a problem hiding this comment.
Thanks, looks good! Did you happen to run the demos and confirm that all still works in the iOS simulator?
|
@mbrandonw yes I ran the Demo on a simulator no problem. I also verified the fix does address the problem on a real apple TV. Thanks a lot for your support. |
Remove redundant
createDirectorycalls that are now handled byFileManager.default.url(create:true).