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

tvOS support #19

Merged
merged 2 commits into from Mar 6, 2016
Merged

tvOS support #19

merged 2 commits into from Mar 6, 2016

Conversation

jakubknejzlik
Copy link
Contributor

I've updated podspec file and added support for specifying NSSearchPathDirectory for method storeURLForName. The reason is that app cannot access Documents directory on real device, and CachesDirectory must be used.

tvOS cannot access DocumentsDirecory on real device (CachesDirectory must be used)
@jakubknejzlik
Copy link
Contributor Author

Another approach should be recognizing the os

something like:

var searchPath = .DocumentDirectory
#if os(tvOS)
    searchPath = .CachesDirectory
#endif

sounds easier in some cases :)

@tadija tadija merged commit 86067c7 into tadija:master Mar 6, 2016
@tadija
Copy link
Owner

tadija commented Mar 6, 2016

Hello @jakubknejzlik, thanks for this. I merged it and implemented another approach which you suggested, I think it's better like that.

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

Successfully merging this pull request may close these issues.

None yet

2 participants