flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
907 stars 709 forks source link

Undefined symbols #648

Open kapilsharma-gts opened 1 week ago

kapilsharma-gts commented 1 week ago

Hello I am getting this error when building to iOS, I am targeting version 12. I am able to run in the simulator, the issue comes when I run flutter build ios --release I tried all the possible solutions for cleaning pods also I deleted the iOS folder and build again.

flutter doctor -v

┌─────────────────────────────────────────────────────────┐ │ A new version of Flutter is available! │ │ │ │ To update to the latest version, run "flutter upgrade". │ └─────────────────────────────────────────────────────────┘ [✓] Flutter (Channel stable, 3.16.3, on macOS 13.6.7 22G720 darwin-x64, locale en-GB) • Flutter version 3.16.3 on channel stable at /Users/kapilsharma/Documents/scr/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision b0366e0a3f (7 months ago), 2023-12-05 19:46:39 -0800 • Engine revision 54a7145303 • Dart version 3.2.3 • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/kapilsharma/Library/Android/sdk • Platform android-34-ext8, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15C500b • CocoaPods version 1.15.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.90.0) • VS Code at /Users/kapilsharma/Documents/Visual Studio Code.app/Contents • Flutter extension version 3.90.0

[✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 13.6.7 22G720 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.115

[✓] Network resources • All expected network resources are available.

• No issues found!

This is the error ld: warning: no platform load command found in

'/Users/kapilsharma/Documents/GitHub/karmm_customer2/ios/Pods/MLKitFaceDetection/Frameworks/MLKitFaceDetection.framework/MLKitFaceDetection', assuming: iOS ld: warning: Could not find or use auto-linked library 'swiftXPC': library 'swiftXPC' not found ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found ld: Undefined symbols: swift_FORCELOAD$_swiftXPC, referenced from: swift_FORCELOAD$swiftXPC$_FBAudienceNetwork in FBAudienceNetwork270 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks in advance.