-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
MLVisionTextModel duplicate symbols with React Native #487
Comments
This comment has been minimized.
This comment has been minimized.
Update: it looks like GMV and React Native have a shared c++ dependency that's causing these symbol collisions. It's unlikely that there are good workarounds for this on your end, so you'll probably have to wait for a Firebase (or RN) fix. I'll keep this issue updated. |
I am trying to publish a wrapper for MLKit Vision for React Native. Here is the podspec. I also tried
My Project's Podfile looks like this:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @zsajjad ! I had the exact same issue using react native and I solved enabling the dead code stripping in xcode for debug. You can enable it in Target > Build Settings > search for "Dead code stripping". For now seems to work fine. |
I made my own package that uses firebase ml vision on android and CoreML+TesseractOCR on ios! |
@joan-domingo's solution works fine. |
I'm building an app with React Native that I've already "ejected" into its own native app project for iOS. I'm interested in using the new Firebase ML Kit Vision Text Detector for recognizing text in images using the on-device model, and I'm willing to write my own NativeModule wrapper for it (since it's so new, I don't see any existing wrappers in projects like react-native-firebase).
So, I used Cocoapods to bring in the Firebase dependencies, but when I try to compile the new workspace, I get the following linker error:
This issue appears when I add
'Firebase/MLVisionTextModel'
in podspecs.In case I don't add this as a dependency, it returns an empty array on the images having a good amount of text!
The text was updated successfully, but these errors were encountered: