Search code examples
iosxcodeflutterflutter-ios

Flutter iOS Build Issue : l[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:


Recently I am getting a build issue with Flutter iOS. It was working fine before, now for all flutter applications i try to build iOS same build issue arises.

Flutter Version : 1.17.5

Xcode Version : 11.3.1

Mac Os : 10.15

On pod install getting the following error message

[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/acube/Desktop/Projects/Uhlala /limitless_singlevendor-app/ios/Flutter/Flutter.framework)

And in Xcode Build

error: /Users/acube/Desktop/Projects/Uhlala /limitless_singlevendor-app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner' from project 'Runner')

I have already tried almost all available fixes found in stack and github

  1. add

s.static_framework = true

  1. Clean build and pod
  2. Uninstall flutter,xcode

Flutter Doctor result

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15 19A583, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (1 available)

• No issues found!

Solution

  • I have faced this problem in all my project even I Create a new flutter Project. Finally I found the solution .

    Solution

    I strongly believe that this issue caused because of some configuration or flutter install issues. I have solved this issue by uninstalling all flutter and coco pods from the machine and reinstalling all from scratch. Then deleting the ios folder from the project and create it again using flutter create . command.