am15h / tflite_flutter_plugin

TensorFlow Lite Flutter Plugin
https://pub.dev/packages/tflite_flutter
Apache License 2.0
499 stars 352 forks source link

Error (Xcode): Undefined symbol: _TfLiteInterpreterGetSignatureCount #223

Open mfikriapratama opened 1 year ago

mfikriapratama commented 1 year ago

anyone can help me about this?

image

this is my podfile

image

and i've tried this, but still got that error build https://github.com/am15h/tflite_flutter_plugin/issues/60#issuecomment-752367647

thank you.

mfikriapratama commented 1 year ago

Xcode build done. 119.2s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED Xcode's output: ↳ Writing result bundle at path: /var/folders/l0/yscyyn6d24d9q93f85x97mr00000gn/T/flutter_tools.SARGJZ/flutter_ios_build_temp_dirFGpVv0/temporary_xcresult_bundle /Users/qa/Documents/Project/eabsensi_sgrs/ios/Pods/Toast/Toast/UIView+Toast.m:398:118: warning: 'UIActivityIndicatorViewStyleWhiteLarge' is deprecated: first deprecated in iOS 13.0 [-Wdeprecated-declarations] UIActivityIndicatorView activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; ^~~~~~~~~~ UIActivityIndicatorViewStyleLarge In module 'UIKit' imported from /Users/qa/Documents/Project/eabsensi_sgrs/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:18:5: note: 'UIActivityIndicatorViewStyleWhiteLarge' has been explicitly marked deprecated here UIActivityIndicatorViewStyleWhiteLarge API_DEPRECATED_WITH_REPLACEMENT("UIActivityIndicatorViewStyleLarge", ios(2.0, 13.0), tvos(9.0, 13.0)) = 0, ^ 1 warning generated. /Users/qa/Documents/Project/eabsensisgrs/ios/Pods/TensorFlowLiteSwift/tensorflow/lite/swift/Sources/Model.swift:50:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes(: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead self.cModel = modelData.withUnsafeBytes { TfLiteModelCreate($0, modelData.count) } ^ In file included from /Users/qa/development/flutter338/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/MLKVisionImage+FlutterPlugin.m:1: /Users/qa/development/flutter338/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError' [-Wunused-function] static FlutterError getFlutterError(NSError error) { ^ 1 warning generated. In file included from /Users/qa/development/flutter338/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.m:1: /Users/qa/development/flutter338/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError' [-Wunused-function] static FlutterError getFlutterError(NSError *error) { ^ 1 warning generated. Undefined symbols for architecture x86_64: "TfLiteInterpreterGetSignatureCount", referenced from: $s14TensorFlowLite11InterpreterC13signatureKeysSaySSGvg in TensorFlowLite(Interpreter.o) "TfLiteInterpreterGetSignatureKey", referenced from: $s14TensorFlowLite11InterpreterC13signatureKeysSaySSGvgSSSiXEfU_ in TensorFlowLite(Interpreter.o) "TfLiteInterpreterGetSignatureRunner", referenced from: $s14TensorFlowLite15SignatureRunnerC11interpreter12signatureKeyAcA11InterpreterC_SStKcfc in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerAllocateTensors", referenced from: $s14TensorFlowLite15SignatureRunnerC15allocateTensorsyyKF in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerDelete", referenced from: $s14TensorFlowLite15SignatureRunnerCfd in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerGetInputCount", referenced from: $s14TensorFlowLite15SignatureRunnerC6inputsSaySSGvg in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerGetInputName", referenced from: $s14TensorFlowLite15SignatureRunnerC6inputsSaySSGvgSSSiXEfU_ in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerGetInputTensor", referenced from: $s14TensorFlowLite15SignatureRunnerC4copy_12toInputNamedy10Foundation4DataVSStKF in TensorFlowLite(SignatureRunner.o) $s14TensorFlowLite15SignatureRunnerC6tensor33_FF0433A885FC97E4F565F3E81A9383E1LL5named8withTypeAA0A0VSS_AA0aR0OtKF in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerGetOutputCount", referenced from: $s14TensorFlowLite15SignatureRunnerC7outputsSaySSGvg in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerGetOutputName", referenced from: $s14TensorFlowLite15SignatureRunnerC7outputsSaySSGvgSSSiXEfU_ in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerGetOutputTensor", referenced from: $s14TensorFlowLite15SignatureRunnerC6tensor33_FF0433A885FC97E4F565F3E81A9383E1LL5named8withTypeAA0A0VSS_AA0aR0OtKF in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerInvoke", referenced from: $s14TensorFlowLite15SignatureRunnerC6invoke4withySDySS10Foundation4DataVG_tKF in TensorFlowLite(SignatureRunner.o) "TfLiteSignatureRunnerResizeInputTensor", referenced from: $s14TensorFlowLite15SignatureRunnerC11resizeInput5named7toShapeySS_AA0A0V0J0VtKF in TensorFlowLite(SignatureRunner.o) "TfLiteXNNPackDelegateCreate", referenced from: $s14TensorFlowLite11InterpreterC16configureXNNPack33_F29A21D383396EE89BAD4E10E1F9B90DLL7options01cD7OptionsyAC0Q0V_s13OpaquePointerVtF in TensorFlowLite(Interpreter.o) "TfLiteXNNPackDelegateDelete", referenced from: $s14TensorFlowLite11InterpreterCfd in TensorFlowLite(Interpreter.o) "TfLiteXNNPackDelegateOptionsDefault", referenced from: $s14TensorFlowLite11InterpreterC16configureXNNPack33_F29A21D383396EE89BAD4E10E1F9B90DLL7options01cD7OptionsyAC0Q0V_s13OpaquePointerVtF in TensorFlowLite(Interpreter.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) note: Building targets in dependency order warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner') warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner') Result bundle written to path: /var/folders/l0/yscyyn6d24d9q93f85x97mr00000gn/T/flutter_tools.SARGJZ/flutter_ios_build_temp_dirFGpVv0/temporary_xcresult_bundle Error (Xcode): Undefined symbol: _TfLiteInterpreterGetSignatureCount Error (Xcode): Undefined symbol: _TfLiteInterpreterGetSignatureKey

Error (Xcode): Undefined symbol: _TfLiteInterpreterGetSignatureRunner

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerAllocateTensors

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerDelete

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerGetInputCount

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerGetInputName

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerGetInputTensor Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerGetOutputCount

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerGetOutputName

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerGetOutputTensor

Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerInvoke Error (Xcode): Undefined symbol: _TfLiteSignatureRunnerResizeInputTensor

Error (Xcode): Undefined symbol: _TfLiteXNNPackDelegateCreate

Error (Xcode): Undefined symbol: _TfLiteXNNPackDelegateDelete Error (Xcode): Undefined symbol: _TfLiteXNNPackDelegateOptionsDefault Could not build the application for the simulator. Error launching application on iPhone 14 Plus. Exited

This is the error when i'm using tflite_flutter 0.9.0