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

Failing to build project after installation

Open raysmithdev opened this issue 6 years ago • 9 comments

Hi there,

I followed the instructions from the README. I am using the following setup.

Using Pods (Recommended)
Add following in ios/Podfile
    pod 'RNTextDetector', path: '../node_modules/react-native-text-detector/ios'
Run following from project's root directory
    cd ios && pod install
Use <your_project>.xcworkspace to run your app

After I did the above and built the project in xCode I got the following error

linker command failed with exit code 1 (use -v to see invocation

Has anyone experienced this error when setting up using Pods?

raysmithdev avatar Jun 23 '19 10:06 raysmithdev

Same for me

rafaelpadovani avatar Jul 09 '19 13:07 rafaelpadovani

Same also cannot build using the manual linking for iOS

rezasazesh avatar Jul 22 '19 17:07 rezasazesh

Any updates for this issue?

tayguohong avatar Feb 05 '20 06:02 tayguohong

This is disappointingly not running and crashes with an error dyld: can't resolve symbol ___cxa_guard_acquire within a lower level api in the simulator. I've search around and have not had much luck resolving this... It seems that something with tesseract is the culprit. I'm looking at alternatives at this point until this is more stable.

SalmonKing72 avatar Feb 13 '20 04:02 SalmonKing72

This is disappointingly not running and crashes with an error dyld: can't resolve symbol ___cxa_guard_acquire within a lower level api in the simulator. I've search around and have not had much luck resolving this... It seems that something with tesseract is the culprit. I'm looking at alternatives at this point until this is more stable.

I uninstall this library after that install firebase branch. Everything works fine now.

tayguohong avatar Feb 13 '20 08:02 tayguohong

After some more research, I looked into a few things regarding tesseract-ocr for iOS that helped get everything up and running as expected.

  1. Install react-native-text-detector per this repo's README
  2. Added the linker flag -lstdc++
  3. Set the build setting Enable Bitcode to NO
  4. followed the README here in this repo. https://github.com/Kila2/libstdc-.6.0.9.tbd/blob/master/README.md

SalmonKing72 avatar Feb 24 '20 16:02 SalmonKing72

After some more research, I looked into a few things regarding tesseract-ocr for iOS that helped get everything up and running as expected.

  1. Install react-native-text-detector per this repo's README
  2. Added the linker flag -lstdc++
  3. Set the build setting Enable Bitcode to NO
  4. followed the README here in this repo. https://github.com/Kila2/libstdc-.6.0.9.tbd/blob/master/README.md

The linker flag -lstdc++ is added through xcode is it?

tayguohong avatar Feb 26 '20 01:02 tayguohong

After some more research, I looked into a few things regarding tesseract-ocr for iOS that helped get everything up and running as expected.

  1. Install react-native-text-detector per this repo's README
  2. Added the linker flag -lstdc++
  3. Set the build setting Enable Bitcode to NO
  4. followed the README here in this repo. https://github.com/Kila2/libstdc-.6.0.9.tbd/blob/master/README.md

The linker flag -lstdc++ is added through xcode is it?

Yes. That's correct

SalmonKing72 avatar Feb 26 '20 16:02 SalmonKing72

@SalmonKing72 that worked perfectly! Thanks!

demogar avatar Apr 04 '20 19:04 demogar