I am trying to use the following package in a project:
https://github.com/richardtop/CalendarKit.git
When I try adding the package via the Swift Package Manager, I get an error about toolchain versions (please see the pic below). I am using XCode 12.4, and my computer is too old to install 12.5.
I tried installing the latest toolchain, but it did not resolve the problem:
Does anyone know if I can get the package to recognize the v5 toolchain I installed?
2
Answers
Yes!
In this case, repo tags can be your friend.
One of my own computers is also (hopefully only temporarily) stuck at Catalina and XCode 12.4, so I was able to add this package to a repo by specifying a (slightly) older version from the list of tagged versions:
I entered in version 1.0.8 into the "Rules" section, but SPM picked up version 1.0.9, which is likely to be the last version that works with Xcode 12.4.
I’ve updated the toolchain to
5.3
, so now there should be no problems of installing CalendarKit with that Swift Toolchain version.