mlx-swift-examples icon indicating copy to clipboard operation
mlx-swift-examples copied to clipboard

Package.resolved

Open ajayjapan opened this issue 4 months ago • 5 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?

ajayjapan avatar Apr 25 '24 01:04 ajayjapan

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

tylerckeller avatar Apr 25 '24 05:04 tylerckeller

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

davidkoski avatar Apr 25 '24 16:04 davidkoski

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.

tylerckeller avatar Apr 25 '24 16:04 tylerckeller

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 avatar Apr 25 '24 16:04 davidkoski

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

davidkoski avatar Apr 25 '24 22:04 davidkoski

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

davidkoski avatar Apr 29 '24 16:04 davidkoski