jonathanpalma / react-native-tesseract-ocr

Tesseract OCR wrapper for React Native
MIT License
561 stars 172 forks source link

** BUILD FAILED ** #66

Closed ghost closed 4 years ago

ghost commented 4 years ago

Need an update for Xcode 11


fatal error: 'React/RCTDefines.h' file not found
#import <React/RCTDefines.h>

The following build commands failed:
    CompileC /Users/brody/Desktop/showme/ios/build/showme/Build/Intermediates.noindex/RNTesseractOcr.build/Debug-iphonesimulator/RNTesseractOcr.build/Objects-normal/x86_64/RNTesseractOcr.o 

/Users/brody/Desktop/showme/node_modules/react-native-tesseract-ocr/ios/RNTesseractOcr.m 

normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
lutakyn commented 4 years ago

This library has never worked for me on iOS, getting React/RCTDefines.h file not found

ducnmisbk commented 4 years ago
  1. Go to Project navigator > Libraries > RNTesseractOcr.xcodeproj
  2. Click on Build Settings and then the first item under "Targets"
  3. Search to edit the 'Header Search Paths'
  4. Add the following entry (click '+'): ${SRCROOT}/../../../ios/Pods/Headers. Make sure to set it to recursive.
  5. Clean (cmd + shift + K) and re-build (cmd + B)
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.