Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error (Xcode): Undefined symbol: _TfLiteInterpreterGetSignatureCount #223

Open
mfikriapratama opened this issue Feb 20, 2023 · 1 comment

Comments

@mfikriapratama
Copy link

mfikriapratama commented Feb 20, 2023

anyone can help me about this?

image

this is my podfile
image

and i've tried this, but still got that error build
#60 (comment)

thank you.

@mfikriapratama
Copy link
Author

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/eabsensi_sgrs/ios/Pods/TensorFlowLiteSwift/tensorflow/lite/swift/Sources/Model.swift:50:29: warning: 'withUnsafeBytes' is deprecated: use withUnsafeBytes<R>(_: (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_12toInputNamedy10Foundation4DataV_SStKF 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant