Could not create the cache used for updating
However, please be mindful that tv OS can purge files in the “Caches” directory at any point, so we encourage you to rely on Realm as a rebuildable cache rather than storing important user data.
If you would like to share a Realm file between a tv OS app and a TV services extension (e.g.
In practice, this can only happen the first time a Realm instance is created on a given thread.
Subsequent accesses to a Realm from the same thread will reuse a cached instance and will always succeed.
For example, if you want to show the users a list of all available ZIP codes.
This is another use case for the In-memory Realms do not save data across app launches, but all other features of Realm will work as expected, including querying, relationships and thread-safety.
To handle errors when first accessing a Realm on a given thread, use Swift’s built-in error handling mechanism: database files, and won’t cause any erroneous behavior if their parent database file is deleted or replaced.
When reporting Realm issues, please be sure to include these auxiliary files along with your main You can refer to our migration sample app for an example of how to use a bundled Realm file.
On i OS 8 and above, files inside apps are automatically encrypted using exception will be thrown.
Realm Studio is our premiere developer tool, built so you can easily manage the Realm Database and Realm Platform. If you need help finding your app’s Realm file, check this Stack Overflow answer for detailed instructions.
With Realm Studio, you can open and edit local and synced Realms, and administer any Realm Object Server instance. You can find example applications for both i OS and OS X in our release zip under to import Realm Swift and make it available for use with your code. Because writing to the “Documents” directory is prohibited on tv OS, the default Realm location is set to .
The framework is responsible for managing how synchronized Realms are cached or stored on disk.
If opening a Realm requires a time-consuming operation, such as applying migrations, compaction or downloading the remote contents of a synchronized Realm, you should use the In some cases, you might not want to open a Realm until it has all remote data available.