Skip to content

Cannot make a windows build with Mapbox installed #1946

@MrJebara

Description

@MrJebara

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions