zsajjad/react-native-text-detector

IOS Compile Issue

Opened this issue · 2 comments

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 have the same issue, did someone found a solution?

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