/mapbox:mapbox-ios-navigation-v2-to-v3-migrationfrom mapbox
Migrates iOS apps from Mapbox Navigation SDK v2 to v3, covering Swift Package Manager, Swift concurrency, and behavior changes like reroute veto and arrival callbacks.
Ships in mapbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Moves an iOS app from Navigation SDK v2 to the latest Navigation SDK v3 release. The agent does most of the work. The developer makes the decisions.
Navigation SDK v3 requires Maps SDK v11. Every app on Navigation v2 is also on Maps v10, so this migration includes a Maps v10 → v11 migration. Use the mapbox-ios-maps-v10-to-v11-migration skill for the map layer (map view, style, annotations, camera APIs, gestures). This skill covers what the Navigation SDK owns: configuration, route requests, the trip session, observers and events, rerouting, arrival, voice, the navigation UI, route line and navigation camera.
Reference files:
references/migration-workflow.md: templates for the inventory, plan, decision log, telemetry map and migration summaryreferences/ios.md: v2 → v3 mappings for iOS (MapboxCoreNavigation → MapboxNavigationCore, MapboxNavigation → MapboxNavigationUIKit)For an Android app, use mapbox-android-navigation-v2-to-v3-migration. A project with both platforms gets two separate migrations, one per platform.
MapboxCoreNavigation / MapboxNavigation 2.x)Not covered:
These rules apply to every step.
Read the official v3 migration guides first: Migrate core and Migrate UI. Delegates and NotificationCenter notifications become Combine publishers on MapboxNavigation.
references/ios.md doesn't copy the guides. It adds what they leave out: callbacks apps actually use that the guides don't map, behavior changes, telemetry, and mappings where the guide is out of date. When the guide and the reference disagree, the reference wins. If you can't fetch the guide, work from the reference alone and say so in the report.
The map layer follows the Maps skill's rule: move tap handling to Featureset Interactions and selection highlighting to Feature State, not a literal port.
Navigation v3 removed or changed several callbacks that let the app decide something:
shouldRerouteFrom returned Bool to veto a reroute. v3 has no per-reroute veto: the SDK reroutes, and willRerouteFrom only reports it.willArriveAt(_:after:distance:) is removeddidArriveAt returned Bool to control advancing to the next leg. It now returns nothing. Leg advancing is set once in CoreConfig.multilegAdvancing.v3 also turns on some features v2 didn't have or had off, such as predictive caching and the vanishing route line. references/ios.md has a Behavior changes table and a New in v3 and on by default table. For every row that applies to the app:
For New in v3 and on by default rows, the default is to turn the feature off, so the migrated app behaves like v2. List each one in the report as available to turn on later. When the developer reports one of these after migrating ("the route line looks different"), go through the whole table, including the defaults QA can't see, such as predictive caching.
When v3 has no equivalent (the feature can't be kept with public v3 API):
Migration or workaround?
NavigationComponent method, a fixed camera zoom through the documented camera options, the destination marker through the waypoint customization methods the SDK deprecation message points to.shouldRerouteFrom returning true, and runs app logic) isn't a behavior change. Move the logic to the matching event publisher and record it in the decision log.Apps often send analytics from Navigation SDK callbacks: reroute events, off-route, route progress, arrival, the raw directions response. In step 1, list every v2 hook the app reads data from, including data that only feeds logging. Map each to its v3 source using the App telemetry hooks table in references/ios.md, and say per hook whether it is same (the v2 API still works), changed (new API or payload, same data) or reduced / gone (less data, or no v3 equivalent). Do this in step 2 for an effort estimate, and confirm it in step 3. When v3 has no equivalent, or reports less (for example no reroute reason, or no raw response object), say so in the telemetry map. Don't drop the log call silently, and don't invent fields.
Keep the app's map style, traffic data, and route request options exactly as they are. v3 changes some defaults. When a default changes something the app relied on, set the v2 value explicitly and log it as a decision. Moving to Standard, newer traffic data, or new routing features is a separate, opt-in recommendation for the report.
v2 NavigationViewController and NavigationView (library MapboxNavigation) move to the same components in MapboxNavigationUIKit v3.
Customization hooks that v3 removed (CarPlay route and waypoint layer customization, route shape delegate methods; the waypoint layer methods on NavigationViewControllerDelegate and NavigationMapViewDelegate remain) are behavior changes. Log them as decisions.
Only use v3 symbols that appear in references/ios.md, the official migration guide, or the SDK source and docs for the version you're targeting. If you're unsure whether a symbol exists or has the stated signature, don't invent one. Write the closest match, add a // [VERIFY WITH MAPBOX] comment, and list it in the report. The build is the final check.
SPI symbols are not public API. A symbol in the SDK source marked @_spi(...) (for example @_spi(MapboxInternal), @_spi(ExperimentalMapboxAPI)) doesn't count as available. Never add an @_spi import. If the only v3 way to do something is SPI, treat it as no public equivalent: log a blocker decision (rule 2), and list it in the report as an item to raise with Mapbox. The reference lists known SPI-only capabilities: check the app against it in step 1.
The same rule covers private modules (MapboxCommon_Private, MapboxNavigationNative_Private, any *_Private or @_implementationOnly import of a Mapbox module) and SPI in every Mapbox SDK the app uses, Maps included:
Use the latest stable 3.x unless the developer pins a version. The v3 API changed during the 3.x line. Check each Target entry's minimum version when the developer pins an older 3.x. Pair it with the Maps SDK v11 version from the release notes.
To find it, don't sort release tags as strings: the tag format changed during 3.x (v3.27.3, then 3.28.0). Strip a leading v, drop pre-releases (-rc, -beta), and compare as versions. Simpler: add the package with "up to next major" from 3.0.0 and read the resolved version from Package.resolved.
If the developer asks you to proceed without stopping, or can't answer: write the plan and decision log as usual, take the rule-2 defaults, and continue. Don't implement any workaround that needs approval (rule 2). Start the summary with a Needs developer review list: every decision taken by default, every behavior removed, every workaround suggested but not implemented.
Run the five steps in order. Don't edit code before step 2 is done and shown to the developer (or, per rule 8, written to the plan file when the developer asked you not to stop).
Run two inventories:
references/ios.mdmapbox-ios-maps-v10-to-v11-migration's reference. If that skill isn't installed, list Maps SDK symbols by area and mark the map layer [VERIFY WITH MAPBOX] in the plan.Output the inventory and the telemetry hook list (templates in references/migration-workflow.md). Flag:
@_spi and *_Private imports, and check the app's features against the reference's SPI-only list.@MainActor.Bool or modified options). These are almost always behavior changes.If the app can run on a simulator, offer to take before screenshots on v2 of the main navigation screens: route preview, active guidance with a maneuver banner, and arrival. Use route simulation so the after screenshots in step 4 can repeat the same route and position.
Group the work by area, in this order:
NavigationViewController, route line, navigation camera, CarPlayFor each area, give the call-site count, effort (S < 1h, M = half a day, L = 1-2 days, XL = more, or blocked), and blockers. List every behavior change and every telemetry hook that loses data as a decision. Use the plan template in references/migration-workflow.md.
The plan on its own answers "how much work is this?". If that was the question, stop here.
Bump Navigation v3 and Maps v11 together, since Navigation v3 pulls in Maps v11. The whole app stops compiling, and it won't compile again until every area, including the map layer, is migrated. Fixing one area doesn't make the build green, so don't wait for a passing build between areas. Instead:
xcodebuild for the app scheme and save the full error list as the baseline.references/ios.md using the Target column. For the map layer, apply the Maps skill's mappings. The area is done when none of the remaining errors are in its files or symbols. Rebuild to refresh the list. New errors can appear as earlier ones clear. In a single-module app the compiler often stops at the first batch of failing files, so the baseline isn't the total: read each file in the area and migrate it, and use the build to confirm.If the app already has navigation behind its own interface (see Staged rollout), migrating and building one module at a time is possible. Say so in the plan.
@_spi or *_Private imports of Mapbox modules in the app; every pre-existing one has a decision (rule 6)Pods build phases and xcconfigs, *.framework links, storyboard references with org.cocoapods.* bundle IDs; README and CI scripts)[VERIFY WITH MAPBOX] tag is listed in the reportIf you can run the app with route simulation, check:
MapboxNavigationProvider);MainActor.assumeIsolated reached from a startup task, or a @MainActor initializer called from a background queue, compiles but traps at launch.A successful build doesn't cover these: in this skill's own evaluation, migrations built cleanly and still crashed or misbehaved on these checks. If you can't run the app, say so in the report, list these checks as not done, and don't claim they were checked.
Write the migration summary from references/migration-workflow.md:
[VERIFY WITH MAPBOX] itemsThe summary should be short enough for a PM to read: areas, effort, blockers, decisions, telemetry gaps.
If the developer needs v2 and v3 side by side (A/B test, fast rollback), don't try to link both SDK generations into one binary. Put navigation and map code behind app-level protocols (for example NavigationEngine and MapProvider) with a v2 implementation and a v3 implementation. Then select the implementation per target or build configuration. Keep the app's telemetry events identical across both implementations, so the A/B comparison measures the SDK and not a logging change. Whether both generations can coexist in a single binary is unconfirmed; mark any such suggestion [VERIFY WITH MAPBOX].
| Area | v2 → v3 |
|---|---|
| Maps SDK | v10 → v11 (separate migration) |
| Distribution | SPM only (no CocoaPods, no Carthage); iOS 14+, Xcode 16+ |
| Configuration | NavigationSettings → CoreConfig, required at creation |
| Entry point | NavigationService / Router / PassiveLocationManager → one MapboxNavigation from MapboxNavigationProvider |
| Events | Delegates and NotificationCenter → Combine publishers on navigation() and tripSession() |
| Route objects | IndexedRouteResponse / RouteResponse → NavigationRoutes |
| Raw response | RouteResponse → not exposed on NavigationRoutes |
| Reroute veto | shouldRerouteFrom -> Bool → none; reroute detection can only be turned off entirely |
| Leg advancing | didArriveAt -> Bool → CoreConfig.multilegAdvancing |
| Custom routing | Custom routing provider → not available |
| Navigation UI | MapboxNavigation UI → MapboxNavigationUIKit |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mapbox/mapbox-agent-skills --plugin mapbox27 skills in this plugin
/mapbox-android-compose-migrationMove Android Mapbox map and navigation screens from the View system (XML MapView, AndroidView-wrapped MapView, fragments) to Jetpack Compose with a coding agent. Covers the Mapbox parts of the screen (MapboxMap composable, viewport state, style and annotation composables, MapEffect, lifecycle, Navigation SDK v3 wiring) and leaves the rest of the screen to Google's XML-to-Compose skill. Keeps the map looking and behaving the same, one screen at a time. Use when migrating a Mapbox screen to Compose, planning that work, or fixing a map that broke after moving to Compose./mapbox-android-maps-v10-to-v11-migrationMigrate an Android app from Mapbox Maps SDK v10 to v11 with a coding agent. Inventories v10 usage, plans the work by area with effort and blockers, migrates one area at a time to the current recommended v11 APIs (Featureset Interactions, Feature State, typed events), surfaces behavior changes as developer decisions, keeps the app's style, and reports what changed. Covers Kotlin, Java, Views and Jetpack Compose. Use when upgrading Maps SDK v10 on Android, estimating a v10 to v11 migration, or fixing a build after bumping to v11.Other plugins' skills for the same job