<!---
**Questions**: If you have questions about how to use Realm, ask on
[Stac…kOverflow](http://stackoverflow.com/questions/ask?tags=realm).
We monitor the `realm` tag.
**Feature Request**: Just fill in the first two sections below.
**Bugs**: To help you as fast as possible with an issue please describe your issue
and the steps you have taken to reproduce it in as many details as possible.
-->
## Goals
Use realm swift in an apple watch app
## Expected Results
It should work ?
## Actual Results
The sandbox of the apple watch prevents the connection to the realm.
## Steps to Reproduce
Create an apple watch app and try to connect to a realm with it on a **real device**. It **works** on the **simulator** but **not** on a **real device**.
This is what you will get:
```
2017-12-10 12:50:24.432939+0100 RealmAWBug WatchKit Extension[373:540595] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
2017-12-10 12:50:24.560815+0100 RealmAWBug WatchKit Extension[373:540433] Unbalanced calls to begin/end appearance transitions for <PUICNavigationController: 0x162f1a00>.
2017-12-10 12:50:25.438822+0100 RealmAWBug WatchKit Extension[373:540595] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2017-12-10 12:50:26.443064+0100 RealmAWBug WatchKit Extension[373:540595] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2017-12-10 12:50:27.448825+0100 RealmAWBug WatchKit Extension[373:540595] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:14 Err:-1 Errno:1 Operation not permitted
Sync: Connection[1]: Failed to resolve 'Your address': Host not found (authoritative)
```
## Code Sample
<!---
Provide a code sample or test case that highlights the issue.
If relevant, include your model definitions.
For larger code samples, links to external gists/repositories are preferred.
Alternatively share confidentially via mail to help@realm.io.
Full Xcode projects that we can compile ourselves are ideal!
-->
https://github.com/TheNoim/RealmAWBug
It dose not really depends on code. But here is an example project
This is what I found: https://stackoverflow.com/questions/41219976/apple-watch-kit-wouldnt-fetch-image
## Version of Realm and Tooling
<!---
[In the CONTRIBUTING guidelines](https://git.io/vgxJO), you will find a script,
which will help determining some of these versions.
-->
```
ProductName: Mac OS X
ProductVersion: 10.13.1
BuildVersion: 17B1003
/Applications/Xcode.app/Contents/Developer
Xcode 9.2
Build version 9C40b
/usr/local/bin/pod
1.4.0.beta.2
Realm (3.0.2)
RealmSwift (3.0.2)
/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
carthage not found
(not in use here)
/usr/local/bin/git
git version 2.15.0
```