gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

TessesractOCR.framework is missing #143

Closed AasmaRaza closed 9 years ago

AasmaRaza commented 9 years ago

I have downloaded/cloned the project. Tried manual installation and cocoapods, but there is no framework how will i proceed?

kevincon commented 9 years ago

@AasmaRaza can you provide a detailed list of steps you took so that we can try to reproduce your issue? Provide the contents of your project's Podfile, and please also mention your OSX version, Xcode version, and the version of the Tesseract library that you are trying to install (either the latest CocoaPod, 3.4.0, or the development version from this GitHub repo).

AasmaRaza commented 9 years ago

Well, I tried both the cocoapods and GitHub repo. This is the exact error I am getting TesseractOCR/TesseractOCR.h' file not found. Although .h file is present but the framework is missing. I can not find it anywhere in the project file as well. Here are the contents of my own Podfile

screen shot 2015-02-11 at 8 04 28 am

I am using OSX Yosemite 10.10.2 and Xcode 6.1.1. I also tried using the manual installation but still no framework present.

kevincon commented 9 years ago

Can you describe the process you used to install the CocoaPod? Can you also post a screenshot of your Xcode window showing the error (particularly the part that shows the files in the project)?

AasmaRaza commented 9 years ago

I followed the instructions given here http://cocoapods.org/ to install cocoapods. Here is the screen shot of the Xcode window. screen shot 2015-02-11 at 10 24 01 am

kevincon commented 9 years ago

I'm confused by the screenshot, since that's showing Template Framework Project and your Podfile mentions a project called "ScratchCard".

One thing that might be tripping you up if you're new to CocoaPods is that, after running pod install in the terminal, you need to always open the .xcworkspace file that CocoaPods creates instead of the usual .xcodeproj file. Are you sure you're using the workspace file after installing the CocoaPod?

AasmaRaza commented 9 years ago

Actually the problem is that I can not compile the actual TesseractOCR project because there is no framework.

Yes, the Podfile that I sent was of my own project. After creating the Podfile and editing it as mentioned on the installation page cocoa pods won't update, saying that the git repository was not found. There was no . xcworkspace file created as well. May be its because update did not happen. I am new to cocoapods that's why I wanted to try with the manual installation.

kevincon commented 9 years ago

Can you post the exact error CocoaPods is giving you about the git repository not being found? I have a feeling that the error is unrelated to this project and might be an issue with your CocoaPods installation because CocoaPods pulls the specs for any pod you want to install from a master git repo.

I'm focusing on helping you with the CocoaPods method of installation because no one else has reported this kind of issue with that method, and honestly the manual installation method is trickier to debug over GitHub because there are several more things that could go wrong.

AasmaRaza commented 9 years ago

@kevincon I must say you are a life saver. I just tried updating again so that I could send you the error and the miracle happened. It is ACTUALLY updating pods. Will update you in a while when and if its done. screen shot 2015-02-11 at 11 05 37 am

AasmaRaza commented 9 years ago

Thanks @kevincon it worked. I still don't know why it is working and why it didn't work last night. Appreciate your help.

I am closing this issue here. Thanks again.