Can't find the file package.resolved, where is it stored?

Problem

  • I am using Swift Package in my project
  • I can't find package.resolved in the following path:
    [appName].xcodeproj/project.xcworkspace/xcshareddata/ (even tried showing the hidden files)

My findings:

  • Following path exists but is empty:
    [appName].xcodeproj/project.xcworkspace/xcshareddata/swiftpm doesn't contain .resolved file
  • [appName].xcodeproj/project.xcworkspace/xcshareddata/swiftpm/configuration is empty

Environment

  • macOS 13.0.1 (22A400)
  • Xcode Version 14.1 (14B47b)

Background

I wanted to check if package.resolved was checked it into git, but now I don't know where to find it.

Questions:

  • Where can I find Package.resolved file?
  • Or has this been changed to a different filename?

Package.resolved found:

  • When I deleted and added the Swift Package I can see the package.resolved.

It doesn't exist yet if you haven't resolved the packages for the project.

1 Like

Thanks a lot @Peter-Schorn

You mean it gets generated when the first time when the package was resolved?

Yes

1 Like

@Peter-Schorn Thanks a lot for that clarification.

I guess that is what might have happened.