Closed AasmaRaza closed 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).
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
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.
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)?
I followed the instructions given here http://cocoapods.org/ to install cocoapods. Here is the screen shot of the Xcode window.
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?
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.
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.
@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.
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.
I have downloaded/cloned the project. Tried manual installation and cocoapods, but there is no framework how will i proceed?