# Unable to run preview on iOS device with MapView

**URL:** <https://forums.fusetools.com/t/unable-to-run-preview-on-ios-device-with-mapview/3466>\
**Category:** Bug Reports\
**Created:** [July 12, 2017, 9:05am UTC](https://forums.fusetools.com/t/unable-to-run-preview-on-ios-device-with-mapview/3466 "2017-07-12T09:05:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poul.kg](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/poul.kg/32/585_2.png) [@poul.kg](https://forums.fusetools.com/u/poul.kg)\
**Post date:** [July 12, 2017, 9:05am UTC](https://forums.fusetools.com/t/unable-to-run-preview-on-ios-device-with-mapview/3466/1 "2017-07-12T09:05:02Z")

</div>

Fuse version 1.1.0 (build 13808)  
OS: macOS Sierra 10.12.5

```auto
git clone https://github.com/poul-kg/MapViewExample
cd MapViewExample
fuse preview -t=iOS
Run app in XCode with iPhone attached
on iPhone I see "Loading, Starting Project" forever

```

MainView.ux

```auto
<App>
    <ClientPanel>
        <NativeViewHost>
            <MapView Latitude="59.911567" Longitude="10.741030" Zoom="10">
                <MapMarker Latitude="59.911567" Longitude="10.741030" Label="Fuse HQ"/>
            </MapView>
        </NativeViewHost>
    </ClientPanel>
</App>

```

MapViewExample.unoproj

```auto
{
  "RootNamespace":"",
  "Packages": [
    "Fuse.Maps",
    "Fuse",
    "FuseJS"
  ],
  "Includes": [
    "*"
  ]
}

```

Also I have the following messages in XCode

```auto
2017-07-12 14:45:26.729696+0600 MapViewExample[5139:1278646] [DYMTLInitPlatform] platform initialization successful
2017-07-12 14:45:26.844855+0600 MapViewExample[5139:1278481] libMobileGestalt MobileGestaltSupport.m:153: pid 5139 (MapViewExample) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-07-12 14:45:26.844967+0600 MapViewExample[5139:1278481] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
2017-07-12 14:45:46.461416+0600 MapViewExample[5139:1278481] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-07-12 14:45:46.463103+0600 MapViewExample[5139:1278481] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-07-12 14:46:10.349798+0600 MapViewExample[5139:1278481] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-07-12 14:46:10.350032+0600 MapViewExample[5139:1278481] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

```

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [July 12, 2017, 9:25am UTC](https://forums.fusetools.com/t/unable-to-run-preview-on-ios-device-with-mapview/3466/2 "2017-07-12T09:25:42Z")

</div>

Hi Pavel,

we have seen the `MobileGestalt` thing before, and it’s likely related to your Apple ID / XCode setup.

The best we have is [this forum post](https://www.fusetools.com/community/forums/bug_reports/cameraview_not_working?page=1&highlight=1c3755bc-e641-4aea-9ae7-15684e517856#post-1c3755bc-e641-4aea-9ae7-15684e517856) so if you could check all your Apple-related settings and figure out what causes the issue, that would be of great help.

---

<div class="post-metadata">

**Author:** ![poul.kg](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/poul.kg/32/585_2.png) [@poul.kg](https://forums.fusetools.com/u/poul.kg)\
**Post date:** [July 12, 2017, 5:09pm UTC](https://forums.fusetools.com/t/unable-to-run-preview-on-ios-device-with-mapview/3466/3 "2017-07-12T17:09:35Z")

</div>

Somehow it just started working after I came home.  
I tried to add GeoLocation Module and try few GeoLocation examples from documentation.  
Then again tried MapView and it started working.

Also I’ve added the following to .unoproj file

```auto
"iOS": {
        "PList": {
            "MKDirectionsApplicationSupportedModes": [
                "MKDirectionsModeCar",
                "MKDirectionsModeBus"
            ],
            "UIRequiredDeviceCapabilities": [
                "location-services"
            ]
        }
    }

```
