Unable to find a specification iOS Origin: On your device Last updated 15 Oct 2026

[!] Unable to find a specification for `X` depended upon by `Y`

CocoaPods can’t find the pod (or version) in its spec repos — stale local specs, a private spec repo not added, or a typo.

Exact message you may see Unable to find a specification fordepended upon byYou have either: out-of-date source repos
Seen on: iOS

Meaning

New pod versions need pod repo update. Private pods require their source in the Podfile. Renamed/deprecated pods also disappear.

Common causes

  • Local spec repo outdated
  • Private spec repo source missing in Podfile
  • Pod name typo or pod removed
  • Version not published

⚡ Quick fix

  1. pod install --repo-update
  2. Add source 'https://…/private-specs.git' to the Podfile
  3. Check the pod name/version on cocoapods.org

Detailed fix by platform

Ruby

  1. swift
    source 'https://github.com/mycompany/Specs.git'
    source 'https://cdn.cocoapods.org/'

How to diagnose

  1. Name — Exact pod name
  2. Sources — Podfile sources
  3. Repo — Last updated?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

CDN: trunk URL couldn't be downloaded — [!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/... (iOS)CDN: trunk URL couldn…CocoaPods compatible versions — CocoaPods could not find compatible versions for pod (iOS)CocoaPods compatible …Could not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveDependency requires compileSdk — Dependency 'androidx.x:1.y' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs (Android)Dependency requires c…library not found for -lPods — ld: library not found for -lPods-AppName / framework not found Pods_App (iOS)library not found for…No such module — Swift: No such module 'X' (module not found) (iOS)No such modulePhaseScriptExecution — Xcode: Command PhaseScriptExecution failed with a nonzero exit code (iOS)PhaseScriptExecutionUnable to…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.