zsajjad / react-native-text-detector

Text Detector from image for react native using firebase MLKit on android and Tesseract on iOS
MIT License
222 stars 60 forks source link

IOS Compile Issue #37

Open mcaninci opened 4 years ago

mcaninci commented 4 years ago

Im developing app with ios 12. But I got below error in xcode. Also I got error react-native . I examined issue and saw libstdc lib not supportted for ios 12. But i wanna use react-native-text-detector. How to solve this issue ?

ld: building for iOS Simulator, but linking in dylib built for macOS, file '/usr/lib/libstdc++.6.0.9.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

campions commented 3 years ago

I have the same issue, did someone found a solution?

fabio-nettis commented 3 years ago

Im developing app with ios 12. But I got below error in xcode. Also I got error react-native . I examined issue and saw libstdc lib not supportted for ios 12. But i wanna use react-native-text-detector. How to solve this issue ?

ld: building for iOS Simulator, but linking in dylib built for macOS, file '/usr/lib/libstdc++.6.0.9.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I had the same issue just now, and for anyone searching to resolve this, add the pod:

pod 'TesseractOCRiOS', :git => 'git://github.com/parallaxe/Tesseract-OCR-iOS.git', :branch => 'macos-support'

This pod doesn't use the libstdc++ library. This library is now long deprecated and support for it was dropped in iOS 12. Add this pod to your Podfile and run:

cd ios && rm Podifle.lock && rm -rf Pods && pod install --repo-update

You now no longer should see this error.


Also check out this issue #31 if you have further compile issues