I am building a flutter project that includes tensorflow and amplify service. My Xcode's output is as the following
Xcode's output:
Undefined symbols for architecture arm64:
"_OBJCCLASS$_FlutterStandardTypedData", referenced from:
objc-class-ref in tflite(TflitePlugin.o)
"_FlutterMethodNotImplemented", referenced from:
-[TflitePlugin handleMethodCall:result:] in tflite(TflitePlugin.o)
"_OBJCCLASS$_FlutterMethodChannel", referenced from:
objc-class-ref in tflite(TflitePlugin.o)
"_OBJCMETACLASS$_FlutterAppDelegate", referenced from:
_OBJCMETACLASS$_AppDelegate in AppDelegate.o
"_OBJCCLASS$_FlutterAppDelegate", referenced from:
_OBJCCLASS$_AppDelegate in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Fluter doctor -v shows:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-US)
• Flutter version 2.2.3 at /Users/sadiaafrin/Desktop/Development/flutter
• Framework revision f4abaa0735 (3 months ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/sadiaafrin/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
I am building a flutter project that includes tensorflow and amplify service. My Xcode's output is as the following
Xcode's output: Undefined symbols for architecture arm64: "_OBJCCLASS$_FlutterStandardTypedData", referenced from: objc-class-ref in tflite(TflitePlugin.o) "_FlutterMethodNotImplemented", referenced from: -[TflitePlugin handleMethodCall:result:] in tflite(TflitePlugin.o) "_OBJCCLASS$_FlutterMethodChannel", referenced from: objc-class-ref in tflite(TflitePlugin.o) "_OBJCMETACLASS$_FlutterAppDelegate", referenced from: _OBJCMETACLASS$_AppDelegate in AppDelegate.o "_OBJCCLASS$_FlutterAppDelegate", referenced from: _OBJCCLASS$_AppDelegate in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Fluter doctor -v shows: [✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-US) • Flutter version 2.2.3 at /Users/sadiaafrin/Desktop/Development/flutter • Framework revision f4abaa0735 (3 months ago), 2021-07-01 12:46:11 -0700 • Engine revision 241c87ad80 • Dart version 2.13.4
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/sadiaafrin/Library/Android/sdk • Platform android-31, build-tools 31.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) ✗ Android license status unknown. Run
flutter doctor --android-licenses
to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.[✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.5.1, Build version 12E507 • CocoaPods version 1.10.2
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2) • 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 11.0.8+10-b944.6916264)
[✓] Connected device (2 available) • iPhone (mobile) • 00008030-00153962363B802E • ios • iOS 14.7.1 • Chrome (web) • chrome • web-javascript • Google Chrome 93.0.4577.63
Please help.