ios-clean

Remove the DebugBridge SPM package and #if DEBUG directives from iOS apps.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/miko06/MedicineSimulator --skill ios-clean-miko06
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios-clean
Source: https://github.com/miko06/MedicineSimulator/tree/main/.opencode/skills/gstack-ios-clean
Command: npx skills add https://github.com/miko06/MedicineSimulator --skill ios-clean-miko06

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill removes the DebugBridge SPM package and all #if DEBUG wiring from an iOS app, streamlining the transition to a release build.

Core Features & Use Cases

  • DebugBridge Removal: Eliminate the DebugBridge SPM package from the app.
  • Debug Wiring: Strip out all #if DEBUG directives.
  • Use Case: When preparing an iOS app for release, use this Skill to ensure that all debug-specific code is removed, improving performance and security.

Quick Start

Run the ios-clean skill to remove DebugBridge and debug directives from your iOS app.

Frequently Asked Questions about ios-clean

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

FAQPage Schema
How do I remove #if DEBUG directives from my iOS app for release?

To remove #if DEBUG directives from an iOS app, you can run a Skill that strips debug-specific code and eliminates the DebugBridge SPM package. This automates the cleanup process during release preparation by executing Bash scripts for directive stripping.

What's the best way to remove the DebugBridge SPM package before an iOS release build?

The best way to remove the DebugBridge SPM package before an iOS release build is to use an automated cleanup tool. It executes Bash scripts to eliminate the package and strip debug wiring, ensuring your release build is free of debug-specific code.

Why does my iOS app still contain debug code after switching to a release configuration?

Your iOS app may still contain debug code because the DebugBridge SPM package and #if DEBUG directives require explicit removal. Automated Bash scripts can strip these debug-specific elements to ensure a clean release build.

Do I need Bash scripts to clean up iOS debug wiring and SPM packages?

Yes, Bash scripts are required to clean up iOS debug wiring and SPM packages. The cleanup process for removing the DebugBridge package and stripping #if DEBUG directives relies on executing these scripts to ensure all debug-specific code is eliminated.

Can I automate iOS code cleanup and #if DEBUG stripping during release preparation?

Yes, you can automate iOS code cleanup and #if DEBUG stripping during release preparation. By running a dedicated cleanup Skill, Bash scripts automatically remove the DebugBridge SPM package and strip debug directives to prepare your app for release.

When should I strip DebugBridge and debug directives from my iOS application?

You should strip DebugBridge and debug directives from your iOS application during the release preparation process. Removing this debug-specific code before deploying a release build improves both app performance and security.