# Error installing UIKit via SwiftPM

**URL:** <https://forum.social.plus/t/error-installing-uikit-via-swiftpm/251>\
**Category:** iOS\
**Tags:** technical\
**Created:** [August 2, 2021, 2:39pm UTC](https://forum.social.plus/t/error-installing-uikit-via-swiftpm/251 "2021-08-02T14:39:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew1](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@Andrew1](https://forum.social.plus/u/Andrew1)\
**Post date:** [August 2, 2021, 2:39pm UTC](https://forum.social.plus/t/error-installing-uikit-via-swiftpm/251/1 "2021-08-02T14:39:53Z")

</div>

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

 ![Screen Shot 2564-08-02 at 20.34.51](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/3516929c4050455635e5d8c566661966fbce16a8.png)

How can I proceed to fix this error? Thanks.

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.social.plus/u/Mark)\
**Post date:** [August 2, 2021, 3:20pm UTC](https://forum.social.plus/t/error-installing-uikit-via-swiftpm/251/2 "2021-08-02T15:20:55Z")

</div>

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.
