yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.01k stars 818 forks source link

Swift compile error: Switch must be exhaustive #1381

Closed bagipro closed 1 year ago

bagipro commented 1 year ago

Swift doesn't build the library because of an error in this switch: https://github.com/yonaskolb/XcodeGen/blob/master/Sources/ProjectSpec/Breakpoint.swift#L217

It suggests also adding

        case .runtimeIssue:
            <#code#>
        }

The issue is reproducible when I'm following the instruction and using the latest available version

yonaskolb commented 1 year ago

This is due to a breaking XcodeProj update. It is pinned to an earlier version in this repo in Package.resolved, but when a package is used as a dependency it's up to the parent package to determine maximum versions.

XcodeProj has been updated here to fix this issue https://github.com/yonaskolb/XcodeGen/pull/1384