library not found for -lPods iOS Origin: On your device Last updated 13 Oct 2026

ld: library not found for -lPods-AppName / framework not found Pods_App

The linker can’t find the CocoaPods library — usually because the .xcodeproj was opened instead of the .xcworkspace, or pods weren’t built.

Exact message you may see library not found for -lPodsframework not found Pods_ld: library not found for -l
Seen on: iOS

Meaning

CocoaPods integrates via the workspace. Building the bare project, missing pod install after cloning, or a mismatched Pods configuration leaves the Pods library absent.

Common causes

  • Opened .xcodeproj instead of .xcworkspace
  • pod install not run after clone/branch switch
  • Deployment target/architecture settings excluding Pods

⚡ Quick fix

  1. Open .xcworkspace
  2. pod deintegrate && pod install
  3. Clean build folder (Shift+Cmd+K)

Detailed fix by platform

Shell

  1. swift
    pod deintegrate && pod install
    open MyApp.xcworkspace

How to diagnose

  1. File — Workspace opened?
  2. Pods — Pods/ folder and Pods.xcodeproj exist?

🔧 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):

built for iOS, linking for simulator — Building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 (iOS)built for iOS, linkin…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 …CocoaPods: pod install failed / not installed — Flutter iOS: Error running pod install — CocoaPods not installed or out of date / [!] CocoaPods could not find compatible versions for pod (Flutter / Dart)CocoaPods: pod instal…Module 'x' not found (iOS build) — Xcode: Module 'firebase_core' not found — flutter build ios fails after adding a plugin (Flutter / Dart)Module 'x' not found …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 find a specification — [!] Unable to find a specification for `X` depended upon by `Y` (iOS)Unable to find a spec…library n…

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.