Closed kevb10 closed 1 year ago
if you look at icons.json, viewBox
is now an int instead of a string. so you need to update main.swift to reflect that
struct SVG: Codable {
let last_modified: UInt
let raw: String
let viewBox: [UInt]
let width: UInt
let height: UInt
let path: Path
}
swift run tools
which is part of the╰─ bundle exec fastlane update_font version:6.2.1
commandwarning: 'fontawesome.swift': 'tools' was identified as an executable target given the presence of a 'main.swift' file. Starting with tools version 5.4.0 executable targets should be declared as 'executableTarget()' Building for debugging... Build complete! (0.12s) Swift/ErrorType.swift:200: Fatal error: Error raised at top level: Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "expeditedssl", intValue: nil), CodingKeys(stringValue: "svg", intValue: nil), _JSONKey(stringValue: "brands", intValue: nil), CodingKeys(stringValue: "viewBox", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) [1] 87389 trace trap swift run tools