Software⏱️ 2 min read📅 2026-05-31

How to Fix: Xcode 11.4 compile error 'Missing package product <package name>'

Xcode compile error when switching branches and running the app, resolved by restarting Xcode or cleaning the project.

Quick Answer: Try restarting Xcode or cleaning the project to resolve the 'Missing package product' error.

The compile error 'Missing package product ' occurs when Xcode fails to locate the package's product file. This issue is often resolved by restarting Xcode, as it can help resolve any temporary issues.

💡 Why You Are Getting This Error

  • [Cause]

🚀 How to Resolve This Issue

Method 1: Package Product File

  1. Step 1: Check if the package product file is present in the project directory.
  2. Step 2: If missing, try re-generating the package product file by running `swift package generate-product-file` in your terminal.

Method 2: Clean and Rebuild

  1. Step 1: Quit Xcode and clean the project by going to Product > Clean in the top menu.
  2. Step 2: Re-open Xcode and rebuild the project by clicking on Product > Build in the top menu.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'Missing package product ' compile error in Xcode.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions