skip to Main Content

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:

Old toolchain error next to new toolchain

Does anyone know if I can get the package to recognize the v5 toolchain I installed?

2

Answers


  1. 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:

    Enter In GitHub Repo URL

    Enter Tag in here

    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.

    And here it is, ready to go!

    Login or Signup to reply.
  2. I’ve updated the toolchain to 5.3, so now there should be no problems of installing CalendarKit with that Swift Toolchain version.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search