Skip to content
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

Failing to build project after installation #21

Open
raysmithdev opened this issue Jun 23, 2019 · 9 comments
Open

Failing to build project after installation #21

raysmithdev opened this issue Jun 23, 2019 · 9 comments

Comments

@raysmithdev
Copy link

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?

@rafaelpadovani
Copy link

Same for me

@rezasazesh
Copy link

Same also cannot build using the manual linking for iOS

@tayguohong
Copy link

Any updates for this issue?

@SalmonKing72
Copy link

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.

@tayguohong
Copy link

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.

@SalmonKing72
Copy link

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

@tayguohong
Copy link

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?

@SalmonKing72
Copy link

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

@demogar
Copy link

demogar commented Apr 4, 2020

@SalmonKing72 that worked perfectly! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants