среда:
flutter 3.7.0, xcode 14
зависимости:
tflite_flutter 0.10.4
Код: Выделить всё
Unhandled Exception: Invalid argument(s): Failed to lookup symbol
'TfLiteInterpreterOptionsCreate': dlsym(RTLD_DEFAULT, TfLiteInterpreterOptionsCreate): symbol not found
#0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33)
#1 TensorFlowLiteBindings._TfLiteInterpreterOptionsCreatePtr (package:tflite_flutter/src/bindings/tensorflow_lite_bindings_generated.dart:336)
#2 TensorFlowLiteBindings._TfLiteInterpreterOptionsCreate (package:tflite_flutter/src/bindings/tensorflow_lite_bindings_generated.dart)
#3 TensorFlowLiteBindings.TfLiteInterpreterOptionsCreate (package:tflite_flutter/src/bindings/tensorflow_lite_bindings_generated.dart)
#4 new InterpreterOptions (package:tflite_flutter/src/interpreter_options.dart:36)
#5 Detector._loadModel (package:tf_module/service/detector_service.dart:109)
#6 Detector.start (package:tf_module/service/detector_service.dart:99)
- < li>В Xcode перейдите в Target Runner > Настройки сборки > Стиль полосы
- Изменить все символы на неглобальные символы
Подробнее здесь: https://stackoverflow.com/questions/785 ... default-tf
Мобильная версия