mapbox / mapbox/mapbox-maps-ios

SwiftUI + MacOS build availability?

Open
#2,393 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Xcode version: 15.2
- iOS version: n/a
- Devices affected: Mac
- Maps SDK Version: 11.19

## Observed behavior and steps to reproduce

When I add the mapbox-maps-ios, try and build for "My Mac" to make a window with a SwiftUI, it fails build:
...SourcePackages/artifacts/mapbox-common-ios/MapboxCommon/MapboxCommon.xcframework:1:1 While building for macOS, no library for this platform was found in '...SourcePackages/artifacts/mapbox-common-ios/MapboxCommon/MapboxCommon.xcframework'.

## Expected behavior
SwiftUI should work to build Mac and iOS apps right? Is there a version of Mapbox library for Mac and iOS?

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.

Research direction

Start with the reported MapboxCommon.xcframework path and the SwiftUI target configured to build for “My Mac.” Check which platforms the bundled framework supports and whether the repository documents macOS availability. Done means confirming supported targets and recording the supported or unsupported behavior clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
build-system, desktop-dev, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.