tuist / XcodeProj

πŸ“ Read, update and write your Xcode projects

Home Page:https://xcodeproj.tuist.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON decoder not properly decoding `proxyType` in some projects

tjwio opened this issue Β· comments

Context πŸ•΅οΈβ€β™€οΈ

We have some Xcode projects that are generated by BUCK with proxyType as a number instead of a string.

What 🌱

This means that the decodeIntIfPresent will throw when it tries to decode it as a string and then bool. We hit this recently in one of our Xcode projects:

Error: typeMismatch(Swift.Bool, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "proxyType", intValue: nil)], debugDescription: "Expected to decode Bool but found a number instead.", underlyingError: nil))

Proposal πŸŽ‰

PR here: #598