---
title: "Xcode stops fetching Swift packages"
url: https://daily.dev/posts/xcode-stops-fetching-swift-packages-0przqxr1k
source_url: https://danielsaidi.com/blog/2024/11/04/xcode-stops-fetching-swift-packages
type: article
source: "Daniel Saidi"
published: 2026-07-05T07:13:59.780Z
updated: 2026-07-05T07:17:43.382Z
tags: ["git", "swift", "xcode"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Xcode stops fetching Swift packages

**[Daniel Saidi](https://daily.dev/sources/danielsaidi)** · 2 min read · 0 upvotes · 0 comments

## Summary

Xcode 16.1 suddenly stopped fetching Swift package dependencies with a 'Fatal: cannot use bare repository' error. The root cause is SourceTree adding a `bareRepository = explicit` entry to the global `~/.gitconfig` file. Removing or commenting out that line and restarting Xcode resolves the issue.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://danielsaidi.com/blog/2024/11/04/xcode-stops-fetching-swift-packages>

---

Tags: [#git](https://daily.dev/tags/git), [#swift](https://daily.dev/tags/swift), [#xcode](https://daily.dev/tags/xcode)

[View this post on daily.dev](https://daily.dev/posts/xcode-stops-fetching-swift-packages-0przqxr1k)
