Skip to content

Xcode Misidentifies mlx-swift Package as mlx-swift-examples( Maybe the Xcode search issue) #247

@rongweiji

Description

@rongweiji

Xcode Misidentifies mlx-swift Package as mlx-swift-examples

First, a huge thanks to the team behind MLX — it's truly a perfect fit for macOS devices. I’m currently working on a project that integrates MLX, and the experience has been fantastic so far.

However, I encountered an issue when trying to add the mlx-swift package to my project via Xcode.

What happened

When I added the following URL as a Swift package dependency in Xcode: https://github.com/ml-explore/mlx-swift , Xcode incorrectly identified the package as mlx-swift-examples instead of mlx-swift.

I expected Xcode to locate and integrate the actual mlx-swift package, as demonstrated in the WWDC 2025 session by Awni, specifically around the 18:11 mark:

WWDC Demo

Environment

  • Xcode version: 16.4 (16F6)
  • Device: MacBook Air 13" M3
  • macOS version: 15.5 (24F74)

Thoughts

This seems like an issue related to how Xcode is resolving or indexing Swift Package dependencies. Any guidance or fix would be greatly appreciated!

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