ml-explore / mlx-swift-examples

Examples using MLX Swift
MIT License
1.03k stars 110 forks source link

Package.resolved #57

Closed ajayjapan closed 6 months ago

ajayjapan commented 7 months ago

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?

tyler-keller commented 7 months ago

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

davidkoski commented 7 months ago

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

tyler-keller commented 7 months ago
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.

davidkoski commented 7 months ago

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!

davidkoski commented 7 months ago

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

davidkoski commented 6 months ago

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