tensorflow / tflite-support

TFLite Support is a toolkit that helps users to develop ML and deploy TFLite models onto mobile / ioT devices.
Apache License 2.0
374 stars 126 forks source link

Generate XCFframework and Static library usage over Swift #921

Open brscan opened 1 year ago

brscan commented 1 year ago

Hello world!

Im in need of some assistance and would like to know if anyone could help. Is it possible to distribute the TensorFlowLiteTaskVision using XCFframework ? Would it be just a matter of compiling the framework for the different architectures (like sim arm64 x86 and arm64) and packaging with xcodebuild create framework flag ?

Also, Im lost on how to use the static generated library (iOS_static_framework) over swift. The only asset generated is the .a file and after I imported it on to the project, swift doesn't recognized that module since there is not module definition like the dynamic framework has.

Is there any example on usage on how to import/use the TensorFlowLiteTaskVision.a ?

Thanks a bunch in advance!

Kind regards

lu-wang-g commented 1 year ago

@schmidt-sebastian may you please help out here? Thanks!