xcode-package-swift-misidentification

Diagnose Xcode misidentification between Package.swift and .xcodeproj directories.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/shimo4228/claude-code-learned-skills --skill xcode-package-swift-misidentification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xcode-package-swift-misidentification
Source: https://github.com/shimo4228/claude-code-learned-skills/tree/main/skills/xcode-package-swift-misidentification
Command: npx skills add https://github.com/shimo4228/claude-code-learned-skills --skill xcode-package-swift-misidentification

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When a project directory contains both Package.swift and .xcodeproj, Xcode may open the directory as a Swift Package instead of the Xcode project, causing the app to appear to build but not launch in the simulator.

Core Features & Use Cases

  • Diagnostic workflow to identify misidentification by inspecting project metadata and build artifacts.
  • Guided checks for DerivedData and Xcode WorkspacePath to confirm which target Xcode opened.
  • Clear remediation steps to ensure the correct .xcodeproj is opened, enabling the app to launch on the simulator.

Quick Start

Open the .xcodeproj file directly to ensure the app launches.

Frequently Asked Questions about xcode-package-swift-misidentification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my iOS app build but not launch in the Xcode simulator?

Your iOS app may build but not launch in the Xcode simulator because Xcode misidentification occurs when a directory contains both Package.swift and .xcodeproj, causing Xcode to open the wrong target. You must open the .xcodeproj file directly to resolve this.

How do I diagnose Xcode opening a Swift Package instead of an Xcode project?

To diagnose Xcode opening a Swift Package instead of an Xcode project, follow a structured diagnostic checklist that inspects DerivedData and Xcode WorkspacePath to confirm which target Xcode actually opened.

What happens when a project directory contains both Package.swift and .xcodeproj?

When a project directory contains both Package.swift and .xcodeproj, Xcode may misidentify the directory and open it as a Swift Package. This prevents the app from launching in the simulator despite appearing to build successfully.

How to fix Xcode misidentification preventing apps from launching on the simulator?

To fix Xcode misidentification preventing apps from launching on the simulator, inspect build artifacts and WorkspacePath, then apply remediation steps to ensure the correct .xcodeproj is opened instead of the Package.swift.

Does having a Package.swift file in my iOS project directory break simulator launches?

Having a Package.swift file in your iOS project directory can break simulator launches because Xcode may misidentify and open the directory as a Swift Package. This misidentification prevents the app from launching correctly on the simulator.