-1

I have a static framework in iOS. This framework has to do some OCR on an image.
Fo which I need to add Google's MLKit Vision Text Recognition (on-device) to this static framework.
I can't add from cocoapods.
Edit: Adding cocoapods will make the framework dynamic and I need to keep the framework static. So, I can't add from cocoapods to the framework.
Is there any way to add Google's MLKit Vision Text Recognition without cocoapods?

Please help.

1 Answers1

0

Have you checked out ML Kit quickstart vision sample app? It shows you how to add ML Kit text recognition from the cocoapods.

Dong Chen
  • 829
  • 4
  • 7
  • Yes, sample app does show how to add from cocoapods. But I can not add from cocoapods because I need to add to the static framework. Adding cocoapods to framework makes it dynamic and I am not supposed to do it as other things are dependent on being the framework as static. – madhurtewani Jul 19 '21 at 09:40
  • I'm not an expert on cocoapods, so not sure why adding cocoapods to a framework makes it dynamic, but have you tried linking the cocoapod statically by replacing `use_frameworks!` in your Podfile with `use_frameworks! :linkage => :static` to see if that solves your problem? I tried that in ML Kit's sample app and it seems to work fine. – Dong Chen Jul 20 '21 at 21:36
  • @madhurtewani friendly ping – Chrisito Aug 04 '21 at 00:23