Skip to content

Instantly share code, notes, and snippets.

@henry40408
Last active May 2, 2022 03:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henry40408/7e6c659f83bfb2deaa6669b08e804009 to your computer and use it in GitHub Desktop.
Save henry40408/7e6c659f83bfb2deaa6669b08e804009 to your computer and use it in GitHub Desktop.
How to resolve ld: framework not found Pods_Runner?

How to resolve ld: framework not found Pods_Runner?

Environment

  • MacOS Big Sur (11.1)
  • Flutter 1.22.5 / Dart 2.10.4
  • Xcode Version 12.3 (12C33)
  • Cocoapods 1.10.1

Problem

I have a Flutter project. An error keeps occurring when I try to build the app:

$ flutter build ios
...
ld: framework not found Pods_Runner
...

Root cause

It turns out that I have changed platform in ios/Podfile:

# Uncomment this line to define a global platform for your project
platform :ios, '11.0'

…but it would NOT be synchronized with settings of Pods target. You need to update iOS Deployment Target of Pods target manually:

ref. ld: framework not found Pods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment