Skip to content

Examples should compile with Swift 6 compiler #2365

@richardpineo

Description

@richardpineo

Environment

  • Xcode version: 16.4 / 26.0
  • iOS version: All
  • Devices affected: All
  • Maps SDK Version: 11.13.3 and higher

Observed behavior and steps to reproduce

Download the examples project. Set 'Swift Language Version' to 'Swift 6'. Try to compile the project.
The project has hundreds of errors.

My experience with Swift 6 is that updating the code to be compliant results in much safer and more optimal code.

Expected behavior

The project should compile with the newest version of the language.
Swift 6 is a year old now.

Notes / preliminary analysis

I tried to cut out all the examples that did not compile, but it was not particularly do-able.

I want to try to use your exmaple for 'offline manager' to reproduce the bug I have reported in another issue:
#2224

I am moderaly certain that the Mapbox SDK does NOT work (crashes at runtime) with Swift 6 compilation when using the offline manager. The best way would be to reproduce an example and modifying the examples project is the most straightforward way to do that.

Additional links and references

#2224

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something is broken!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions