# Error resolving Swift Packages

**URL:** https://discuss.bitrise.io/t/error-resolving-swift-packages/12686
**Category:** Builds
**Created:** [April 21, 2020, 7:37am UTC](https://discuss.bitrise.io/t/error-resolving-swift-packages/12686 "2020-04-21T07:37:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chamithaw](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@chamithaw](https://discuss.bitrise.io/u/chamithaw)
#### Post date: [April 21, 2020, 7:37am UTC](https://discuss.bitrise.io/t/error-resolving-swift-packages/12686/1 "2020-04-21T07:37:56Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

The build always fails to resolve the Swift Package dependencies (all public) at the Xcode Test for iOS step.

xcodebuild: error: Could not resolve package dependencies:  
The repository at /Users/vagrant/Library/Developer/Xcode/DerivedData/TeamApp-agqxjbpwrdczbldhxwiirathbkfa/SourcePackages/repositories/json-logic-swift-ccf2e615 is invalid; try resetting package caches

## Environment:

Xcode 11.3.x, on macOS 10.14.6 (Mojave)  
Xcode Test for iOS 2.4.5

## Reproducibility

Always on Bitrise. Never locally using Xcode nor the Bitrise CLI.

### Local reproduction

No. Tested using the Biterise CLI.

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

### Author: ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)
#### Post date: [May 12, 2020, 7:52am UTC](https://discuss.bitrise.io/t/error-resolving-swift-packages/12686/2 "2020-05-12T07:52:50Z")

</div>

Hi @chamithaw! Sorry about the long delay. In case the issue is persistent, can you try to delete your cache (in the settings) or disable it in the Xcode test step?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)
#### Post date: [June 11, 2020, 7:52am UTC](https://discuss.bitrise.io/t/error-resolving-swift-packages/12686/3 "2020-06-11T07:52:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
