0

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?
user1046037
  • 16,755
  • 12
  • 92
  • 138
  • You could always grep -r at in the root directory for .resolved – valosip Nov 11 '22 at 04:51
  • It is not present even when greping, I would appreciate if you don't blindly close issues without confirming / understanding the underlying issue – user1046037 Nov 11 '22 at 04:56
  • 1
    I simply suggested searching for it using grep, there are people who don't know how to do that, not judging. No closing or voting from me. – valosip Nov 11 '22 at 05:00

1 Answers1

0

Problem

For some reason the Package.resolved file was missing, not sure why.

Workaround / Solution

  • Remove and add the Swift Package to the project, this caused the Package.resolved to be created
user1046037
  • 16,755
  • 12
  • 92
  • 138