vinivendra / Gryphon

The Swift to Kotlin translator.
https://vinivendra.github.io/Gryphon/
Other
607 stars 46 forks source link

Fix error when trying to install on macOS 12.0 (Monterrey) or later #120

Closed tfmart closed 1 year ago

tfmart commented 2 years ago

What's in this pull request?

This pull request fixes an error when attempting to install Gryphon on a Mac running macOS 12.0 (Monterrey) or later. This issue happened because the SourceKitten dependency increased their target version to macOS 12.0, while the Gryphon project itself has remained with macOS 10.13.

Since the Package.swift was configured to use the latest version up to the next major, upon running the install script, Gryphon tried to install the latest version of the dependency, which would fail because of the target version conflict. In order to fix this, I've set the Package file to use the exact last compatible version of SourceKitten

Does this resolve an open issue?

Yes, it resolves the issue at #118

Checklist for submitting a pull request:

MartyCatawiki commented 1 year ago

@vinivendra Could you merge this PR when it fixes the issue?

pnewell commented 1 year ago

Until they do, this will allow you to install it:

mint install tfmart/Gryphon@swift5.7-beta

pjechris commented 1 year ago

@vinivendra is there anything preventing this MR to be merged? Seems it's needed to start using Gryphon on macOS 12+.

vinivendra commented 1 year ago

I believe this is no longer necessary after merging #119, right? It seems to be building fine now on macOS 13.5, Xcode 14.2, Swift 5.7.2. Let me know if I'm missing something, otherwise I'll close this PR later.

tfmart commented 1 year ago

Indeed this is not needed anymore with #119 being merged