ml-explore / mlx-swift-examples

Examples using MLX Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package.resolved

ajayjapan opened this issue · comments

Has anyone else got this error:

Package.resolved file is corrupted or malformed; fix or delete the file to continue

Had to remove this file to get the project to build the dependencies:

rm mlx-swift-examples/mlx-swift-examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

maybe adding Package.resolved to gitignore?

commented

Ran into the same issue but started building after removing that Package.resolved file

I don't see this -- do you get this when opening the xcodeproj in Xcode?

commented
Screenshot 2024-04-25 at 10 05 17 AM

Yes, this is the error I see when checking out main and opening the xcodeproj.

Once deleted everything starts building though.

Curious -- I wonder if there is a merge conflict in the file in your local checkout? I presume not if you are able to reproduce this.

Anyway, the file records the git hashes of the dependencies as last resolved. For dependencies that track the head of main like mlx this is how we move it forward. I think by deleting it will probably just pick up the current head, so that should be fine.

I am curious what it sees in the file that is corrupt.

What version of Xcode are you using? I am on 15.3

If you see this again, could you attach the file (in case it differs from what is it git)?

Thanks!

Take a look at #59 and the potential fix in #60

Closing -- I think that was probably the same issue, but let me know if not!