Error installing UIKit via SwiftPM

I tried to install UIKit via SwiftPM and I got this error as seen in the screenshot below

How can I proceed to fix this error? Thanks.

This issue might be related to Xcode’s local package caches. You can try purging Xcode’s local package caches by going into Xcode’s File menu → select ‘Swift Packages’ → select ‘Reset Package Caches’.
Another way to do this is that if your Xcode version is 12.5 or newer, you can go to ~/Library/Caches/org.swift.swiftpm/ and delete Amity related cached folder and files.