Package.resolved
ajayjapan opened this issue · 6 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?
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?
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!
Closing -- I think that was probably the same issue, but let me know if not!