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 .
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.
We also provide a standalone Mac app named Realm Browser to read and edit .realm databases.
You can generate a test database with sample data using the menu item Tools Generate demo database.
To do that, follow these steps: Solution 2 – Make sure that your Sleep mode is enabled Sometimes random restart on Windows 10 can be triggered if Sleep mode timer is set to Never.
If you’re looking to use Realm from Objective‑C, or from mixed Objective‑C & Swift apps, please see Realm Objective‑C instead.
The Realm Objective‑C and Realm Swift APIs are not interoperable and using them together is not supported.
In order to fix this issue, you need to set Sleep mode timer to any other different value.
To do that, follow these steps: Solution 3 – Uninstall your antivirus If you’re having random restarts, this can be caused by your antivirus software.