flutter-tflite icon indicating copy to clipboard operation
flutter-tflite copied to clipboard

IOS release version does't work

Open denis-kolkov opened this issue 2 years ago • 5 comments

Hello. I have a similar problem in 2024. Everything works in the debug version, but the release version does't work. Xcode does't add the framework to the ipa file.

I'm using the latest version of tflite_flutter: ^0.10.4 Options: Strip Style = Non-Global Symbols Strip Linked Product = No

MacBook Pro Apple M1 Pro Sonoma 14.3 (23D56) Xcode Version 15.2 (15C500b)

I also tried adding frameworks manually. They are added to the ipa package, but the package cannot be installed or uploaded to TestFly.

Asset validation failed Invalid Bundle. The bundle Runner.app/Frameworks/TensorFlowLite.framework does not support the minimum OS Version specified in the Info.plist. (ID: 8c2faa9d-72b6-4024-b1b2-4849a7aa2afe)

What am I doing wrong in my life? :) Thanks in advance for your help.

denis-kolkov avatar Mar 22 '24 08:03 denis-kolkov

So the build was successful ? According to the ReadMe it needs to be built via cmake or bazel . Did you follow the links provided , built it and adding manually still did not work?

alexw92 avatar Mar 24 '24 00:03 alexw92

Good afternoon. Thank you for your response. I went on vacation for a few days... No, I couldn’t build the iOS version. Do the Bazel build guide or the CMake build guide also apply to the iOS version? I'll try to build it like for the Mac version. I'll be happy if this helps.

denis-kolkov avatar Mar 26 '24 11:03 denis-kolkov

Hi @denis-kolkov, Hope you are doing well. Is your issue resolved? I am too facing same issue. If yes then please describe how to solve it.

SantroTechneAi avatar Jun 25 '24 12:06 SantroTechneAi

The customer decided to recognize on the server and return recognition results to the client via a socket. So I left this task.

Now if you try to build a release version, Apple itself throws your libraries out of the build!

But I realized that you will have to change the minimum version inside the library and compile the library yourself. Then add the library as static to your project.

denis-kolkov avatar Jun 25 '24 12:06 denis-kolkov

@denis-kolkov Thanks for reply mate.

SantroTechneAi avatar Jun 25 '24 12:06 SantroTechneAi