Xcode 6.4
application error
troubleshooting
Apple development
software issues

Xcode 6.4 The Application You Have Selected Does Not Exist

Interview Questions practice on Codemia

Over 8,000 real interview questions from top companies, searchable by company and role.

Browse interview questions

Introduction

This Xcode message usually does not mean your source code vanished. It usually means Xcode tried to launch an app bundle at a path that no longer exists, or the selected scheme is pointing at the wrong executable. In older Xcode versions such as 6.4, stale build products and scheme drift were especially common causes.

What Xcode Is Looking For

When you press Run, Xcode does several things in sequence:

  1. builds the selected target
  2. locates the generated .app bundle
  3. launches that bundle in the simulator or on a device

If the build succeeds but the expected app path is stale, or if the scheme points at the wrong target, Xcode can reach the launch step and then fail with "The Application You Have Selected Does Not Exist."

That is why the problem is usually about build metadata, not app logic.

Check the Scheme First

The first thing to verify is that the selected scheme actually runs the application target you think it does.

Look at the scheme and confirm:

  • the Build action includes the correct app target
  • the Run action points to that same target
  • the executable is the app, not a framework, test bundle, or stale duplicate target

This matters most in projects that were renamed, duplicated, or upgraded over time. Old schemes can keep references to products that are no longer built.

Clean Build Products and Derived Data

Stale build output is a classic cause. Clean the build folder and rebuild. If that does not help, remove DerivedData so Xcode regenerates its cached paths.

bash
rm -rf ~/Library/Developer/Xcode/DerivedData/*

After that, reopen the project or workspace and build again.

This is a blunt fix, but it works often because the error message is frequently caused by cached paths to an app bundle that was moved, renamed, or deleted.

Look for Product Name or Path Changes

If someone changed PRODUCT_NAME, build directories, or related output settings, Xcode may build an app bundle whose name or location no longer matches what the scheme expects.

That can happen after:

  • renaming the target
  • duplicating a project
  • changing build configuration settings
  • switching between project and workspace setups

If the scheme expects OldApp.app but the build now produces NewApp.app, the launcher will fail even though compilation succeeded.

Confirm the App Bundle Actually Exists

Sometimes the cleanest debugging step is to verify that the build produced an application bundle at all. Build the project, open the Products group in Xcode, and inspect whether the app target appears correctly.

If the build product is missing entirely, the problem is not the launcher. It is a build configuration problem upstream.

If the product exists but the scheme still cannot launch it, the problem is usually in scheme configuration or cached metadata.

Multi-Target Projects Make This Worse

This error becomes more common when the project includes:

  • app extensions
  • frameworks
  • unit-test targets
  • UI-test targets
  • duplicated app targets for different environments

In those cases, the selected scheme may build one product but try to launch another. Older Xcode versions were less forgiving about these mismatches, so legacy projects often need an explicit scheme cleanup.

A Practical Recovery Sequence

When you want a reliable troubleshooting order, use this sequence:

  1. confirm the correct scheme is selected
  2. inspect the Run action executable
  3. clean the build folder
  4. remove DerivedData
  5. rebuild and confirm the .app product exists
  6. inspect build settings for renamed products or custom output paths

That progression catches most real causes without changing source code at all.

Common Pitfalls

  • Assuming the simulator or device is the problem when the app bundle path is wrong.
  • Cleaning once and never checking whether the scheme points at the right executable.
  • Forgetting old target renames or duplicated targets that left stale scheme entries behind.
  • Customizing product names or build directories without updating related scheme assumptions.
  • Treating the message as a code bug when it is usually a project-configuration bug.

Summary

  • This Xcode error usually means the selected scheme cannot find the built app bundle where it expects it.
  • Start with scheme settings, not source-code debugging.
  • Clean build output and DerivedData when stale paths are likely.
  • Verify that the app target actually produces the expected .app bundle.
  • In older Xcode projects, renamed targets and stale schemes are common root causes.

Related reading
Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Track what you have practised

A free account saves your progress, solutions and study plan across every problem on Codemia.

Interview Questions practice on Codemia

Over 8,000 real interview questions from top companies, searchable by company and role.

Browse interview questions

All Rights Reserved.