Fuse version 1.1.0 (build 13808) OS: macOS Sierra 10.12.5
How to reproduce:
git clone https://github.com/poul-kg/MapViewExample
cd MapViewExample
fuse preview -t=iOS
Run app in XCode with iPhone attached
on iPhone when map is loaded, tap on blue marker which represents current location.
App is crashing. iOS version 10.3.2
MapViewExample.unoproj
{
"RootNamespace":"",
"Packages": [
"Fuse.Maps",
"Fuse",
"FuseJS"
],
"Includes": [
"*"
],
"iOS": {
"BundleIdentifier": "com.map.example",
"PreviewBundleIdentifier": "com.map.example.preview",
"BundleName": "MapViewExample",
"BundleVersion": "0.0.1",
"PList": {
"MKDirectionsApplicationSupportedModes": [
"MKDirectionsModeCar",
"MKDirectionsModeBus"
],
"UIRequiredDeviceCapabilities": [
"location-services"
]
}
}
}
MainView.ux
<App>
<JavaScript>
function log(obj, mapEventArgs) {
console.log(JSON.stringify(obj));
console.log(JSON.stringify(mapEventArgs));
}
module.exports = {
log: log
}
</JavaScript>
<ClientPanel>
<NativeViewHost Background="#000" >
<MapView Latitude="42.8227562" Longitude="74.6230976" Zoom="10" ShowMyLocationButton="true" LocationTapped="{log}" MarkerTapped="{log}" ShowMyLocation="true">
<MapMarker Latitude="42.8227562" Longitude="74.6230976" Label="Fuse HQ"/>
</MapView>
</NativeViewHost>
</ClientPanel>
</App>
Xcode Error
2017-07-12 23:14:38.601761+0600 MapViewExample[5507:1342038] -[MKUserLocation markerID]: unrecognized selector sent to instance 0x1708357c0
2017-07-12 23:14:38.603134+0600 MapViewExample[5507:1342038] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MKUserLocation markerID]: unrecognized selector sent to instance 0x1708357c0'
*** First throw call stack:
(0x18a3dafe0 0x188e3c538 0x18a3e1ef4 0x18a3def54 0x18a2dad4c 0x1000a2d2c 0x196ac1264 0x196a81b58 0x196ab36b8 0x190addd38 0x190ae156c 0x19069b470 0x19053d380 0x190ad1810 0x18a3889a8 0x18a386630 0x18a386a7c 0x18a2b6da4 0x18bd20074 0x190571058 0x1000a13d4 0x1892c559c)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)