react-native-text-detector icon indicating copy to clipboard operation
react-native-text-detector copied to clipboard

IOS Compile Issue

Open mcaninci opened this issue 5 years ago • 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)

mcaninci avatar Oct 12 '20 13:10 mcaninci

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

campions avatar Apr 29 '21 09:04 campions

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

fabio-nettis avatar Jul 26 '21 07:07 fabio-nettis