# "Missing package product" error for all local Swift Packages when switching git branches

**URL:** <https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041>\
**Category:** Using Swift\
**Tags:** packagemanager\
**Created:** [June 30, 2020, 6:02pm UTC](https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041 "2020-06-30T18:02:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ray](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@ray](https://forums.swift.org/u/ray)\
**Post date:** [June 30, 2020, 6:28pm UTC](https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041/3 "2020-06-30T18:28:26Z")

</div>

@NeoNacho The Package resolution log shows no errors. Looks like it only applies to remote swift packages. Here is the export of the log. The error above is specifically for local packages only.  
Package Resolution log:

```
Showing All Messages   
Resolve Package Graph
Activity Log Complete 6/30/20, 11:26 AM 7.5 seconds

```

Build log:

```
Showing All Messages

Prepare build
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Build target <target name> of project <project name> with configuration Debug
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
error: Missing package product '<local package name>' (in target '<target name>' from project '<project name>')
Build failed 6/30/20, 11:19 AM 1.2 seconds

```

---

_[View the full topic](https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041)._
