mapbox / mapbox/mapbox-unity-sdk

Cannot make a windows build with Mapbox installed

Open
#1,946 4 comments 0 reactions 1 assignee View on GitHub

@brnkhy is already working on this.

Since Dec 25, 2025.

Dominant language
C#
Stars
784
Forks
231
PR merge metrics
No merged PRs in 30d

Description

So I made my game with a Unity asset called GO Maps but since it no longer gets updates I decided to switch to Mapbox V3.

I used to make a windows build for some easy testing of certain features but now when I make a Windows build with Mapbox installed I get the following errors:

"MB3\Runtime\Mapbox\BaseModule\Map\MapboxContext.cs(30,34): error CS1061: 'MapboxConfiguration' does not contain a definition for 'GetMapsSkuToken' and no accessible extension method 'GetMapsSkuToken' accepting a first argument of type 'MapboxConfiguration' could be found (are you missing a using directive or an assembly reference?)"

"MB3\Runtime\Mapbox\BaseModule\Map\MapboxContext.cs(51,20): error CS1061: 'MapboxConfiguration' does not contain a definition for 'Initialize' and no accessible extension method 'Initialize' accepting a first argument of type 'MapboxConfiguration' could be found (are you missing a using directive or an assembly reference?)"

"MB3\Runtime\Mapbox\BaseModule\Map\MapboxContext.cs(53,44): error CS1061: 'MapboxConfiguration' does not contain a definition for 'GetMapsSkuToken' and no accessible extension method 'GetMapsSkuToken' accepting a first argument of type 'MapboxConfiguration' could be found (are you missing a using directive or an assembly reference?)
"

I have put a valid Mapbox token and it works on IOS (I had different problems with MapboxCommon.xcframework and Turf.xcframework files but I got it to work after some fixes).

I get that a geo location game isn't suited for PC but a windows build is much easier than getting it to IOS for testing so I would prefer to a find a fix that sorts this issue out.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.