Skip to content

Repository files navigation

Storage Detective Logo

Storage Detective

Find What's Actually Taking Your Space on iOS

A professional, production-quality, native iOS 17+ storage diagnostic utility and safe cleanup assistant built with SwiftUI, SwiftData, PhotoKit, and WidgetKit.

Release iOS Target Swift Privacy First License: MIT Zero Telemetry

Download IPA


Explore Features β€’ Apple Sandbox Compliance β€’ Architecture β€’ Duplicate Detection β€’ Download IPA β€’ Building β€’ FAQ


{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Storage Detective",
  "operatingSystem": "iOS 17+",
  "applicationCategory": "UtilitiesApplication",
  "offers": {
    "@type": "Offer",
    "price": "0.00",
    "priceCurrency": "USD"
  },
  "description": "Production-grade native iOS storage analyzer and safe cleanup assistant. Uses public Apple APIs, PhotoKit zero-RAM inspection, local 64-bit dHash perceptual photo duplicate detection, and security-scoped folder scanning. 100% offline and privacy-first.",
  "creator": {
    "@type": "Organization",
    "name": "vikrant-project"
  }
}

πŸ” What is Storage Detective?

Most storage "cleaners" in the iOS ecosystem are predatory: they fabricate dramatic "system junk" meters, show fake cleaning animations, and claim to clear hidden cache categories that Apple's security sandbox prevents any third-party app from touching.

Storage Detective answers a real, honest question:

"What is actually taking up my storage, and what can I safely do about it within Apple's rules?"

Storage Detective provides legitimate, mathematically verified diagnostics using only Apple's official public APIs and user-authorized data:

  1. Accurate Hardware Capacity: Reads true volume capacity and real free space via Foundation URLResourceValues.
  2. Zero-RAM Media Diagnostics: Queries PhotoKit asset resource byte counts without pulling multi-gigabyte photos into memory.
  3. Local Perceptual Duplicate Finder: Fast 64-bit difference hashing (dHash) identifies identical and near-duplicate photos on-device without cloud upload.
  4. Security-Scoped Folder Traversal: Inspects files, downloads, and archives you explicitly choose via Document Picker.
  5. Non-Destructive Safe Cleanup: Every deletion requires two-step confirmation; photo deletions use iOS's native confirmation dialog and move items to "Recently Deleted".

πŸ›‘οΈ Critical iOS Platform Rule & Sandbox Integrity

In strict accordance with Apple's App Store Review Guidelines and security model, Storage Detective adheres to the following non-negotiable principles:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        APPLE SANDBOX BOUNDARIES                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ❌ WHAT THIRD-PARTY APPS CANNOT DO β”‚ βœ… WHAT STORAGE DETECTIVE DOES      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β€’ Access another app's private sandboxβ”‚ β€’ Query device-wide total capacity β”‚
β”‚ β€’ Inspect system storage caches    β”‚ β€’ Query volume available free spaceβ”‚
β”‚ β€’ Clear other apps' internal data β”‚ β€’ Inspect user-authorized Photos   β”‚
β”‚ β€’ Automate or scrape iOS Settings  β”‚ β€’ Scan user-selected folders/files β”‚
β”‚ β€’ Fabricate "System Data" metrics  β”‚ β€’ Perceptually cluster duplicates  β”‚
β”‚ β€’ Perform silent automated deletes β”‚ β€’ Require explicit 2-step deletion β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Important

Strict Distinction: Storage Detective always separates Device Hardware Storage from Storage Analyzed by Storage Detective. Inaccessible system categories are honestly labeled: Not accessible to third-party apps.


✨ Core Features

1. πŸ“Š Concentric Storage Overview

  • Concentric Storage Ring: Visually compares physical device storage usage against the fraction of data Storage Detective was authorized to analyze.
  • Explainable Storage Health Score (0–100): Deterministic, documented scoring based on duplicate accumulation, massive video files, dormant downloads, and recent maintenance. Includes an itemized "Why this score?" breakdown.

2. πŸ–ΌοΈ PhotoKit Media Storage Analyzer

  • Direct Resource Sizing: Inspects PHAssetResource metadata directly for true byte sizes.
  • Large Video Finder: Identifies clips exceeding 100 MB, 500 MB, and 1 GB with duration, resolution, and thumbnail preview.
  • Screenshot Organizer: Chronologically groups transient screenshots with bulk review.
  • Limited Access Friendly: Seamlessly respects Apple's Limited Photos Library authorization tier.

3. πŸ”¬ Perceptual Photo Duplicate Detection (dHash)

  • 64-bit Difference Hashing: Fast, local perceptual fingerprinting. Scales thumbnails to $9 \times 8$ grayscale and tracks pixel gradient directions.
  • Hamming Distance Clustering:
    • Distance = 0: Exact match.
    • Distance $\le 4$: High perceptual similarity.
    • Distance $\le 8$: Similar composition.
  • Suggested Keepers: Automatically suggests keeping the highest resolution or favorited photo, while never deleting without explicit user selection.

4. πŸ“ User-Authorized Document & Folder Scanner

  • Security-Scoped File Enumerator: Recursively audits directories (e.g., Downloads, iCloud Drive, project folders) chosen via Document Picker.
  • Uniform Type Identifiers (UTType): Classifies contents into Videos, Photos, Documents, Archives, Audio, and Other.
  • Large & Dormant File Discovery: Filters by size (>10 MB to >1 GB) and age (>30 days to >1 year).

5. 🧹 Safe Cleanup Center

  • Two-Step Verification: Displays exact file counts, filenames, and byte sum before any destructive action.
  • Native PhotoKit Confirmation: Photo deletions trigger iOS's system prompt and move items to "Recently Deleted" for 30-day safety.
  • Audit Logging: Every completed cleanup records an immutable on-device audit entry.

6. πŸ“ˆ Storage History & Trend Visualizations

  • Apple Charts Integration: Displays analyzed storage trends over time.
  • Reclaimed Space Tracker: Tracks total cumulative bytes freed through authorized cleanups.

7. πŸ”’ Privacy Center & Biometric Lock

  • LocalAuthentication: Optional Face ID, Touch ID, or Passcode lock.
  • 1-Tap Data Wipe: Instantly purge all locally cached snapshots and history.

8. πŸ“„ Multi-Format Diagnostic Reports

  • Export verified diagnostic audit reports in Markdown (PDF-ready), JSON, and CSV through iOS ShareLink.

9. πŸ“± WidgetKit Support

  • Small and Medium Home Screen widgets monitoring analyzed footprint, score, and potential cleanup opportunities.

πŸ—οΈ Architecture & Technical Stack

StorageDetective/
β”œβ”€β”€ StorageDetective.xcodeproj/      # Pure native Xcode project & schemes
β”œβ”€β”€ App/
β”‚   β”œβ”€β”€ StorageDetectiveApp.swift    # 6-tab SwiftUI NavigationStack lifecycle
β”‚   β”œβ”€β”€ AppEnvironment.swift         # Reactive state manager (@Observable / Combine)
β”‚   β”œβ”€β”€ Info.plist                   # Privacy usage strings (Photos, Face ID)
β”‚   └── StorageDetective.entitlements
β”œβ”€β”€ Core/
β”‚   β”œβ”€β”€ Models/                      # Snapshot, PhotoAssetItem, DuplicateGroup, Finding
β”‚   β”œβ”€β”€ Services/                    # SystemStorageService, PhotoLibraryService, dHash, Cleanup
β”‚   β”œβ”€β”€ Storage/                     # Atomic local history repository
β”‚   β”œβ”€β”€ Diagnostics/                 # StorageScoreCalculator (0-100 deterministic)
β”‚   └── Utilities/                   # ByteFormatter, Date extensions, FileTypeClassifier
β”œβ”€β”€ Components/                      # StorageRing, MetricCard, FileRow, Thumbnail, SafeConfirmation
β”œβ”€β”€ Features/
β”‚   β”œβ”€β”€ Dashboard/                   # Overview, ring gauge, score breakdown, quick actions
β”‚   β”œβ”€β”€ Analyze/                     # Progress-tracked photo and folder scans
β”‚   β”œβ”€β”€ Photos/                      # Media browser, duplicate review, screenshots
β”‚   β”œβ”€β”€ Files/                       # Large file finder, dormant files, type explorer
β”‚   β”œβ”€β”€ Cleanup/                     # Safe Cleanup Center and success summaries
β”‚   β”œβ”€β”€ History/                     # Swift Charts trend analysis and audit log
β”‚   β”œβ”€β”€ Reports/                     # Markdown/JSON/CSV report generator
β”‚   β”œβ”€β”€ Settings/                    # Theme, Face ID lock, Privacy Center
β”‚   └── Onboarding/                  # 4-step transparency onboarding flow
β”œβ”€β”€ Widgets/                         # WidgetKit Small & Medium Home Screen widgets
└── Resources/                       # Assets.xcassets (AppIcon, AccentColor), LaunchScreen

πŸ“₯ Direct IPA Download & Installation

Pre-compiled production-ready IPAs are built via automated GitHub Actions on Apple Silicon macOS runners:

Release Package Architecture Direct Download
v1.0.0 (Latest) StorageDetective.ipa arm64 (iOS 17.0+) Download v1.0.0 IPA

Installation Options:

  • AltStore / AltServer: Sideload directly onto physical iPhone/iPad.
  • Sideloadly: Drag-and-drop installation with free Apple ID.
  • TrollStore: Direct installation on supported iOS versions.
  • Apple Configurator: Deploy to supervised organization devices.

πŸ› οΈ Build & Development Instructions

Prerequisites

  • Mac running macOS Sonoma 14.0 or later
  • Xcode 15.0 or later
  • iOS 17.0+ iPhone or iPad Simulator / Device

Quick Build:

# Clone the repository
git clone https://github.com/vikrant-project/Storage-Detective.git
cd Storage-Detective

# Open in Xcode
open StorageDetective.xcodeproj

# Build via CLI
xcodebuild build \
  -project StorageDetective.xcodeproj \
  -scheme StorageDetective \
  -destination 'generic/platform=iOS' \
  -configuration Release

For detailed signing and archiving guides, see BUILDING.md.


βš–οΈ Comparison: Storage Detective vs Scam Cleaners

Feature / Behavior Typical App Store "Cleaners" Storage Detective
Storage Numbers Source Fabricated / Fake animations Apple public Foundation APIs
Photo Library Inspection Slow / Crashes on large libraries Zero-RAM PHAssetResource sizing
Duplicate Detection Uploads thumbnails to server 100% on-device 64-bit dHash
System Cache Clearing Claims to clear; impossible Transparently explains sandbox limits
Deletion Model Risky 1-tap "CLEAN ALL" 2-step verification; user in control
Account Required Demands email / subscription No account, no login, zero tracking
Network Traffic Heavy telemetry & ad SDKs 100% offline; zero analytics

❓ Frequently Asked Questions

Why can't Storage Detective clean "System Data" or other apps' caches?

iOS enforces strict application sandboxing. No third-party application has permission to inspect or modify another application's private container or Apple's internal system accounting database. Any app claiming to "clean system memory" or "wipe app caches" is misleading users. Storage Detective honestly explains what is and isn't accessible.

Are my photos or files uploaded to any cloud server?

Never. Storage Detective is 100% offline-first. Perceptual image fingerprinting, metadata analysis, and storage score calculations happen exclusively on your device's processor.

What happens when I delete duplicate photos?

Storage Detective uses Apple's official PhotoKit deletion API. iOS presents its native system confirmation alert. Deleted items are moved to your "Recently Deleted" album, where they can be recovered for up to 30 days.

How is the Storage Detective Score calculated?

The score starts at 100 and applies transparent deductions for duplicate media volume, massive individual files (>100MB), and dormant files older than 180 days. A bonus is awarded for completed cleanups. You can view the full factor breakdown by tapping the score on the Dashboard.


🏷️ Search & Topic Tags

#ios #swift #swiftui #storage-analyzer #iphone-storage #storage-cleaner #storage-detective #photokit #duplicate-photos #duplicate-detection #perceptual-hashing #dhash #swift-charts #widgetkit #apple-sandbox #privacy-first #offline-first #ios17 #ios-utility #apple-developer #open-source-ios


πŸ“„ License

Storage Detective is released under the MIT License.

Copyright (c) 2026 vikrant-project.

About

πŸ” Storage Detective β€” Production-Grade Native iOS 17+ Storage Analyzer & Safe Cleanup Assistant (SwiftUI, PhotoKit, Perceptual dHash Duplicate Detection, Swift Charts, WidgetKit). 100% Apple Sandbox Compliant & Privacy-First.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages