Code Monkey home page Code Monkey logo

dotnet-mapbox-quickstart's Introduction

Mapbox quick-start and examples for .NET

This repo provides a quick start guide and/or examples to guide developers on how to integerate Mapbox to .NET Android/iOS applications.

QuickStart

Examples

TODO

# iOS Example Ported
1 AddMarkersSymbolExample
2 AddOneMarkerSymbolExample
3 AdvancedViewportGesturesExample
4 AnimateGeoJSONLineExample
5 AnimateImageLayerExample
6 AnimateLayerExample
7 AnimatedMarkerExample
8 BasicLocationPulsingExample
9 BasicMapExample
10 BuildingExtrusionsExample
11 CameraAnimationExample
12 CameraAnimatorsExample
13 CircleAnnotationExample
14 ColorExpressionExample
15 Custom2DPuckExample
16 Custom3DPuckExample
17 CustomLayerExample
18 CustomLocationProviderExample
19 CustomPointAnnotationExample
20 CustomStyleURLExample
21 DataDrivenSymbolsExample
22 DataJoinExample
23 DebugMapExample
24 DistanceExpressionExample
25 ExternalVectorSourceExample
26 FeatureStateExample
27 FeaturesAtPointExample
28 FrameViewAnnotationsExample
29 GlobeExample
30 GlobeFlyToExample
31 HeatmapLayerGlobeExample
32 IconSizeChangeExample
33 LargeGeoJSONPerformanceExample
34 LayerPositionExample
35 LineAnnotationExample
36 LineGradientExample
37 LiveDataExample
38 LocalizationExample
39 MultipleGeometriesExample
40 NavigationSimulatorExample
41 OfflineManagerExample
42 OfflineRegionManagerExample
43 PitchAndDistanceExample
44 PointAnnotationClusteringExample
45 PointClusteringExample
46 PolygonAnnotationExample
47 RasterTileSourceExample
48 ResizableImageExample
49 RestrictCoordinateBoundsExample
50 SceneKitExample N/A
51 ShowHideLayerExample
52 SkyLayerExample
53 SnapshotterCoreGraphicsExample
54 SnapshotterExample
55 SpinningGlobeExample
56 StoryboardMapViewExample N/A
57 SwitchStylesExample
58 SymbolClusteringExample
59 TerrainExample
60 TrackingModeExample
61 ViewAnnotationAnimationExample
62 ViewAnnotationBasicExample
63 ViewAnnotationMarkerExample
64 ViewAnnotationWithPointAnnotationExample
65 ViewportExample
66 VoiceOverAccessibilityExample

Maintainer

This project is maintained by tuyen-vuduc in his spare time and/or when requested.

If you find this project is helpful and benefit your work/business, please give it a star, become a sponsor of the project and/or buy him a coffee.

"Buy Me A Coffee"

LICENSE

This library is release under MIT License. You are freely to use and make changes.

dotnet-mapbox-quickstart's People

Contributors

tuyen-vuduc avatar

Stargazers

Oleksii Skliarov avatar Nikos Mpasdanis avatar

Watchers

 avatar Evert avatar

Forkers

psdg-mdaves

dotnet-mapbox-quickstart's Issues

Problem with iOS simulator

Hello.
Trayed to run this project and for Android it works well (both real and emulator) but for iOS Simulator it doesn't work. Looks like MAPBOX TOKEN doesn't work properly. The map is not displayed.
Could you five me a hand, please.
May be author of project can give me a pay consultation.

This is my log:
xcrun simctl launch --stdout=/dev/ttys000 --stderr=/dev/ttys001 --terminate-running-process 8532990A-0BA8-4C0F-967D-3F7988DC4D82 com.vuductuyen.dotnet.ios.mapboxqs -monodevelop-port 10000 com.vuductuyen.dotnet.ios.mapboxqs: 5291 2023-11-08 18:44:39.328971+0200 DotnetIOS.MapboxQs[5291:49695] [Mapbox] [Info, common]: Using Mapbox Common SDK v23.3.2(e7e08d748) 2023-11-08 18:44:39.356593+0200 DotnetIOS.MapboxQs[5291:49695] [Mapbox] [Info, maps-core]: Using Mapbox Core Maps SDK v10.11.1(383a15c604) Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/Microsoft.iOS.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Runtime.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Collections.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Runtime.InteropServices.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Threading.Thread.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Threading.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/DotnetIOS.MapboxQs.dll Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Private.Uri.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/MapboxCoreMaps.iOS.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/MapboxCommon.iOS.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/MapboxMaps.iOS.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/MapboxMapsObjC.iOS.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Net.Http.dll [External] Loaded assembly: /Users/kristina/Library/Developer/CoreSimulator/Devices/8532990A-0BA8-4C0F-967D-3F7988DC4D82/data/Containers/Bundle/Application/2A855643-B71B-45F2-9911-EC0CB54FFA5D/DotnetIOS.MapboxQs.app/System.Net.Primitives.dll [External] 2023-11-08 18:44:40.098079+0200 DotnetIOS.MapboxQs[5291:49695] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:40.098466+0200 DotnetIOS.MapboxQs[5291:49695] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:40.115386+0200 DotnetIOS.MapboxQs[5291:49695] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:40.115764+0200 DotnetIOS.MapboxQs[5291:49695] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:40.172901+0200 DotnetIOS.MapboxQs[5291:49705] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:40.173268+0200 DotnetIOS.MapboxQs[5291:49705] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:40.205473+0200 DotnetIOS.MapboxQs[5291:49695] [Mapbox] [Error, maps-ios/MapView]: No suitable Metal simulator can be found. 2023-11-08 18:44:40.207909+0200 DotnetIOS.MapboxQs[5291:49695] [Mapbox] [Info, maps-core]: Using Metal render backend 2023-11-08 18:44:40.430658+0200 DotnetIOS.MapboxQs[5291:49695] [CAMetalLayer nextDrawable] returning nil because device is nil. 2023-11-08 18:44:40.442670+0200 DotnetIOS.MapboxQs[5291:49695] [CAMetalLayer nextDrawable] returning nil because device is nil. 2023-11-08 18:44:40.455322+0200 DotnetIOS.MapboxQs[5291:49695] [CAMetalLayer nextDrawable] returning nil because device is nil. 2023-11-08 18:44:41.468152+0200 DotnetIOS.MapboxQs[5291:49737] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:41.469761+0200 DotnetIOS.MapboxQs[5291:49737] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:41.457505+0200 DotnetIOS.MapboxQs[5291:49747] [Mapbox] [Warning, config_service]: No configuration options found stored on the disk. 2023-11-08 18:44:41.489172+0200 DotnetIOS.MapboxQs[5291:49747] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:41.490124+0200 DotnetIOS.MapboxQs[5291:49747] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:41.491462+0200 DotnetIOS.MapboxQs[5291:49705] [unspecified] container_query_get_single_result: error = 2โ†’(98) NOT_CODESIGNED 2023-11-08 18:44:41.491696+0200 DotnetIOS.MapboxQs[5291:49705] [unspecified] container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED 2023-11-08 18:44:41.508174+0200 DotnetIOS.MapboxQs[5291:49705] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:41.508589+0200 DotnetIOS.MapboxQs[5291:49705] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:41.509017+0200 DotnetIOS.MapboxQs[5291:49705] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5291 2023-11-08 18:44:41.509435+0200 DotnetIOS.MapboxQs[5291:49705] SecTaskCopyDebugDescription: DotnetIOS.Mapbox[5291]/0#-1 LF=0 2023-11-08 18:44:41.520763+0200 DotnetIOS.MapboxQs[5291:49705] [connection] nw_socket_handle_socket_event [C1.1.1.1:3] Socket SO_ERROR [61: Connection refused] 2023-11-08 18:44:41.524092+0200 DotnetIOS.MapboxQs[5291:49705] Connection 1: received failure notification 2023-11-08 18:44:41.524342+0200 DotnetIOS.MapboxQs[5291:49705] Connection 1: failed to connect 1:61, reason -1 2023-11-08 18:44:41.524498+0200 DotnetIOS.MapboxQs[5291:49705] Connection 1: encountered error(1:61) 2023-11-08 18:44:41.525758+0200 DotnetIOS.MapboxQs[5291:49705] Task <D906F5E4-D953-4113-AAF9-B1E2EBAF36A0>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61]) 2023-11-08 18:44:41.527469+0200 DotnetIOS.MapboxQs[5291:49705] Task <D906F5E4-D953-4113-AAF9-B1E2EBAF36A0>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000ce2dc0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <D906F5E4-D953-4113-AAF9-B1E2EBAF36A0>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <D906F5E4-D953-4113-AAF9-B1E2EBAF36A0>.<1>" ), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://events.mapbox.com/events/v2?access_token=pk.***, NSErrorFailingURLKey=https://events.mapbox.com/events/v2?access_token=pk.***, _kCFStreamErrorDomainKey=1} 2023-11-08 18:44:42.542293+0200 DotnetIOS.MapboxQs[5291:49705] [connection] nw_socket_handle_socket_event [C3.1.1.1:3] Socket SO_ERROR [61: Connection refused] 2023-11-08 18:44:42.543603+0200 DotnetIOS.MapboxQs[5291:49705] Connection 3: received failure notification 2023-11-08 18:44:42.543798+0200 DotnetIOS.MapboxQs[5291:49705] Connection 3: failed to connect 1:61, reason -1 2023-11-08 18:44:42.544121+0200 DotnetIOS.MapboxQs[5291:49705] Connection 3: encountered error(1:61) 2023-11-08 18:44:42.544879+0200 DotnetIOS.MapboxQs[5291:49705] Task <BDAC60D0-00B3-48C4-9ABD-5FE0BFA9812F>.<3> HTTP load failed, 0/0 bytes (error code: -1004 [1:61]) 2023-11-08 18:44:42.545666+0200 DotnetIOS.MapboxQs[5291:49737] Task <BDAC60D0-00B3-48C4-9ABD-5FE0BFA9812F>.<3> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000cecc60 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <BDAC60D0-00B3-48C4-9ABD-5FE0BFA9812F>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <BDAC60D0-00B3-48C4-9ABD-5FE0BFA9812F>.<3>" ), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://events.mapbox.com/events/v2?access_token=pk.***, NSErrorFailingURLKey=https://events.mapbox.com/events/v2?access_token=pk.***, _kCFStreamErrorDomainKey=1} 2023-11-08 18:44:45.263178+0200 DotnetIOS.MapboxQs[5291:49747] [Mapbox] [Info, tile_store]: Searching for stale partial downloads to clean up 2023-11-08 18:44:45.263724+0200 DotnetIOS.MapboxQs[5291:49747] [Mapbox] [Info, tile_store]: Cleanup of stray partial downloads complete 2023-11-08 18:44:46.560544+0200 DotnetIOS.MapboxQs[5291:49737] [connection] nw_socket_handle_socket_event [C4.1.1.1:3] Socket SO_ERROR [61: Connection refused] 2023-11-08 18:44:46.564923+0200 DotnetIOS.MapboxQs[5291:49737] Connection 4: received failure notification 2023-11-08 18:44:46.565196+0200 DotnetIOS.MapboxQs[5291:49737] Connection 4: failed to connect 1:61, reason -1 2023-11-08 18:44:46.565560+0200 DotnetIOS.MapboxQs[5291:49737] Connection 4: encountered error(1:61) 2023-11-08 18:44:46.568071+0200 DotnetIOS.MapboxQs[5291:49737] Task <A185F4BC-ED3D-4B0D-AAF4-F7299C1C8EB2>.<4> HTTP load failed, 0/0 bytes (error code: -1004 [1:61]) 2023-11-08 18:44:46.569615+0200 DotnetIOS.MapboxQs[5291:49733] Task <A185F4BC-ED3D-4B0D-AAF4-F7299C1C8EB2>.<4> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000ce6910 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A185F4BC-ED3D-4B0D-AAF4-F7299C1C8EB2>.<4>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <A185F4BC-ED3D-4B0D-AAF4-F7299C1C8EB2>.<4>" ), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://events.mapbox.com/events/v2?access_token=pk.***, NSErrorFailingURLKey=https://events.mapbox.com/events/v2?access_token=pk.***, _kCFStreamErrorDomainKey=1} 2023-11-08 18:44:46.571308+0200 DotnetIOS.MapboxQs[5291:49750] [Mapbox] [Error, events_service]: Events sending aborted after 2 attempts

Screenshot 2023-11-08 154158

Screenshot 2023-11-08 154313

.NET MAUI sample app not compiled well on .NET 8

The linker step 'Registrar' failed during processing

1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8004\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(364,3): error IL7000: An error occured while executing the custom linker steps. Please review the build log for more information.
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8004\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(364,3): error MT2362: The linker step 'Registrar' failed during processing: Object reference not set to an instance of an object.
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8004\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(406,3): error MSB3371: The file "obj\Debug\net8.0-ios\ios-arm64\linked\Link.semaphore" cannot be created. Could not find a part of the path 'dotnet-mapbox-quickstart\src\quickstart\DotnetMaui.MapboxQs\obj\Debug\net8.0-ios\ios-arm64\linked\Link.semaphore'.

xamarin/xamarin-macios#20148

Adding new source issue

Hi,

I was trying to add my own vector tiles source programatically and it didn't work well. What I did is:

  1. Load default style from mapbox studio via url
           mapboxMap.LoadStyleUri("mapbox://styles/myacc/cllde6avf00yt01qsem1jggzx", styleLoadedListener);
  1. On styleLoadedListener I've added vector tiles source like:

         var url = "http://192.168.31.163:3000/herbicide/{z}/{x}/{y}";
         var jsonArray = new GoogleGson.JsonArray();
         foreach (var str in new string[] { url })
         {
             jsonArray.Add(new JsonPrimitive(str));
         }
    
         var sourceProperties = new JsonObject();
         sourceProperties.Add("type", new JsonPrimitive("vector"));
         sourceProperties.Add("tilejson", new JsonPrimitive("herbicide"));
         sourceProperties.Add("sourceId", new JsonPrimitive("herbicide"));
         sourceProperties.Add("tiles", jsonArray);
    
         // Convert the JsonObject to a Value
         var sourceValue = new Value(sourceProperties.ToString());
    
         // 2. Add the VectorSource to the style
         p0.AddStyleSource(SOURCE_ID, sourceValue);
    

When I check collection of objects in StylesSources there were only two objects mapped as Com.Mapbox.Maps.StyleObjectInfo, both comes from Uri loaded default style.

Vector tiles support

Hi,
I was trying to use package 11.1.0 on my iPhone and it deploys but I find out vector tiles are not loading. I spend some time and couldn't figure out why it's not working, so I decided to do a check on Android, where on 10.11.1 vector tiles are working fine. I find out that on latest package they stops working too on Android. Now I wonder if that's issue with some changes that are between 10.11.1 and 11.1.0 or it's maybe issue with package?

Package update:

    <PackageReference Include="Com.Mapbox.Maps.Android" Version="10.11.1" />
    <PackageReference Include="Com.Mapbox.Maps.Android" Version="11.1.0" />

Code that loads vector tiles (and styles):
_mapView.MapboxMap.LoadStyleJson(styleJson: styleAsJson);

My style is default Satellite Streets, version 8, plus I added myVectorTiles source and someLinesSources. I must admit that someLinesSources works fine, as well as other json part. Only vector tiles seems to not loads. Any idea what I can check or what setup turn on to see mode debug info?

"sources": {
       "mapbox://mapbox.satellite": {
           "url": "mapbox://mapbox.satellite",
           "type": "raster",
           "tileSize": 256
       },
       "composite": {
           "url": "mapbox://mapbox.mapbox-streets-v8",
           "type": "vector"
       },
       "myVectorTiles": {
           "type": "vector",
           "url": "https://myapi/tile.json?filter=data_uuid='123'"
       },
       "someLinesSources": {
           "type": "geojson",
           "data": {
               "type": "Feature",
               "properties": {},
               "geometry": {
                   "type": "LineString",
                   "coordinates": [
   				[...]
                   ]
               }
           }
       }
   }

In my output I can only see (in Android):

mReversing is false. Don't call initChildren.

Running project on real iPhone / Xamarin.iOS project deploy to real device error

I am facing strange issue - on Xamarin.iOS project I am able to build iPhone Simulator but on iPhone real device it's failing with error:

Unexpected error - Please fill a bug report at (MT0000).

I check and issue occurs after I am using library. So if there's code that reach library - compilation fails. Only difference in solution between those two configurations

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'QA-Debug|iPhoneSimulator' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\iPhoneSimulator\QA-Debug</OutputPath>
    <DefineConstants>DEBUG;</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <MtouchArch>x86_64</MtouchArch>
    <MtouchLink>SdkOnly</MtouchLink>
    <MtouchDebug>true</MtouchDebug>
    <CodesignKey>...</CodesignKey>
    <MtouchFastDev>true</MtouchFastDev>
    <OptimizePNGs>false</OptimizePNGs>
    <MtouchExtraArgs>-gcc_flags "-ObjC"</MtouchExtraArgs>
    <CodesignProvision>Automatic</CodesignProvision>
    <CodesignEntitlements>Info.plist</CodesignEntitlements>
  </PropertyGroup>
  
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'QA-Debug|iPhone' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\iPhone\QA-Debug</OutputPath>
    <DefineConstants>__IOS__;__MOBILE__;__UNIFIED__;DEBUG</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <MtouchArch>ARM64</MtouchArch>
    <CodesignKey>...</CodesignKey>
    <MtouchDebug>true</MtouchDebug>
    <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
    <MtouchFastDev>true</MtouchFastDev>
    <MtouchFloat32>true</MtouchFloat32>
    <MtouchExtraArgs>-gcc_flags "-ObjC"</MtouchExtraArgs>
    <MtouchLink>SdkOnly</MtouchLink>
    <CodesignEntitlements>QA-Debug-Entitlements.plist</CodesignEntitlements>
    <MtouchInterpreter>-all</MtouchInterpreter>
    <CodesignProvision>...</CodesignProvision>
  </PropertyGroup>

Since I am not able to run on real device also sample project due 'Optimizing Assemblies for size not supported for the selected publish configurations' I will setup sample project using Xamarin.iOS and library and check if it will deploy on my real iPhone or not.

Issue should not be related to my profiles etc., since only if I am removing library or use of library in code then it compiles and deploy correctly.

Any idea what else I can check meanwhile?

I find out that issue occurs only with those lines of code inside:

var options = MapInitOptionsFactory.CreateWithresourceOptions(resourceOptions, nul, null, styleURI: "", null);

which comes from MapboxMapsObjC, without this code it works / compile and deploy.

Running project on iPhone simulator / showing map box map

Project launched perfectly on Android simulator and real device, but on iOS Simulator I experience problem.
It look like I have wrong MAPBOX_ACCESS_TOKEN, however this token work perfectly in android.
I would be appreciated if you give me a hand.

3cdc2584-0ba1-4181-bc3a-547bb4183533

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.