I have been testing Tesseract on Xcode.I followed instructions from Visit http://lois.di-qual.net/blog/install-and-use-tesseract-on-ios-with-tesseract-ios/ .But the problem
After adding TESSDATA_PREFIX to your system variables, try restarting your PC. I'm running Windows 10 and that's what fixed this error for me.