peripheryapp / periphery

A tool to identify unused code in Swift projects.
MIT License
5.2k stars 188 forks source link

keyNotFound "minimumVersion" #765

Closed vahotm closed 3 weeks ago

vahotm commented 3 months ago

I am receiving the following error. Is that error also from tuist?

error: (DecodingError) keyNotFound(CodingKeys(stringValue: "minimumVersion", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "requirement", intValue: nil)], debugDescription: "No value associated with key CodingKeys(stringValue: \"minimumVersion\", intValue: nil) (\"minimumVersion\").", underlyingError: nil))
KevinDoremy commented 3 months ago

@vahotm Try this

image

ileitch commented 2 months ago

Possibly because the project does not speciy a minimum version for remote packages, and xcodeproj expects one: https://github.com/tuist/XcodeProj/blob/951e9397e59dd1cabb369c1e8894643f7be22019/Sources/XcodeProj/Objects/SwiftPackage/XCRemoteSwiftPackageReference.swift#L43

ileitch commented 3 weeks ago

Closing as this is not a bug in Periphery. Please open a bug report at https://github.com/tuist/XcodeProj if this continues to affect your project.