ypresto / SwiftLintXcode

An Xcode plug-in to format your code using SwiftLint.
Other
351 stars 15 forks source link

SwiftLint failing build with missing product_type #19

Open flowinhoBSCH opened 5 years ago

flowinhoBSCH commented 5 years ago

SwiftLint causes the build of an iOS project to fail with the attached error message. Setup:

Xcode 10.3
MacOS Mojave
Carthage Builds
XCode project generated using xcodegen

The thing is: i cant seem to interpret this message. I am missing something obvious, but i cant guess what.

Does anyone know what exact SwiftLint is referring here to?

Thx in advance.

🌱  Failed to read Package.swift file:
Couldn't decode package dump:
keyNotFound(CodingKeys(stringValue: "product_type", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "products", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"product_type\", intValue: nil) (\"product_type\").", underlyingError: nil))
Command PhaseScriptExecution failed with a nonzero exit code
yonaskolb commented 5 years ago

Hi @flowinhoBSCH, this looks like an error in Mint. Older versions of it gave this error when trying to build a Swift 5 package. Try updating your version

flowinhoBSCH commented 5 years ago

Hey @yonaskolb Unfortunately, this is happening with the most recent version, as well as previous versions.