yonaskolb / XcodeGen

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

Build is broken on Xcode 16 Beta 1 due to GraphViz #1483

Closed giginet closed 2 days ago

giginet commented 2 weeks ago

Currently, XcodeGen can't build with Xcode 16 Beta 1.

/Users/giginet/Library/Developer/Xcode/DerivedData/XcodeGen-ccjxvauqmliuzaaqjslkfzkifxrg/SourcePackages/checkouts/GraphViz/Sources/GraphViz/Edge.swift:6:27 'ID' is only available in macOS 10.15 or newer

The following errors were caused by GraphViz. However it is no longer maintained and has already become a public archive.

This dependency is only used in the dump command, so we can easily drop the feature. Therefore, I think it's better to remove this dependency for future maintainability. How do you think?

By the way, I guess this error is caused by a compiler bug. Therefore, it may be resolved by Swift 6 release.

giginet commented 3 days ago

This issue is still occurred on Xcode 16 beta 2

I made the fork to drop GraphViz. https://github.com/giginet/XcodeGen/commit/afbdbbc2bf7f5e7437c7c84cd373248431e251c2

yonaskolb commented 2 days ago

@giginet can you create a PR for this please? You can point to this issue as well https://github.com/yonaskolb/XcodeGen/issues/1462

giginet commented 2 days ago

Sure, I'll open the PR soon.