"SHK.h" file not found - iphone

Sorry guys for noob question, need help.
I'm try to use Sharekit - https://github.com/ShareKit/ShareKit.
I'm doing all steps from "Installing sharekit" wiki page, and I have no errors before I trying to import SHK.h.
SHK.h visible in autocomplete, but I've got error.
What could be missed?

The answer in the link https://github.com/ShareKit/ShareKit/issues/393#issuecomment-6057929 is partially exact. You can have ShareKit folder at the same level of your project.
Just add in your project "Header Search Paths" (assuming that the directory where you put ShareKit is called "ShareKit" :
$(SRCROOT)/../ShareKit/Classes/**
And
$(SRCROOT)/../ShareKit/Submodules/**

I am not sure why you have the problem but you can try
Click on project -> select your target -> Build phases -> expand compile sources and make sure that you have your SHK.m file there if not then add it.

Related

Finding the right way to include static libraries in Xcode

First of all I have to say that I'm new with Xcode and I found some things a bit comfusing for beginners.
For now I want to include SQLite support in my test app. I found the wrapper "FMDB" which seems very easy to use.
I was already able to include the .m and .h files into my project and setting the header line for bridging to Swift.
But if I build my app then I will get some link errors. I think the problem is that the sqlite library is missing. But I've no idea to include it. So I searched the web for some tutorials but all I found seems too old and didn't help me.
What I've already done are the following steps: I selected the top item of my project in the Project Explorer. Then I selected my build target and switched to the tab "Build Phases". But now I see no possibility to include the libsqlite.a file. I followed some suggestions and typed the keyword "sqlite" in the search field but I only get the message "No results found."
I'm using Xcode 8 + Swift 3 on Mac Sierra.
I think that U should find libsqlite.a file in the filesystem and only then add libsqlite.a to project by right click on project files in Xcode 8 and selecting "add files to " and select you .a library from system location like Homebrew's sqlite root folder, only then you can select this static library in "+" linking menu. Please read this answer:
https://stackoverflow.com/a/15974037/2835276
I solved my problem by including sqlite3.c and sqlite3.h from sqlite.org so every wrapper works fine.

Tesseract change Language iOS

Can anyone explain me how can I change the language from eng to german.
When i download the new library from the Google Side and I include this in the tessdata the result is NULL.
Can anyone help me please??
I decided to write a new answer.
After testing it out myself, I think the problem is the files are not copied to your device correctly.
Check if 'tessdata' is included in the "Copy Bundle Resources".
You can find that by clicking on your project > target > build phases
if not, click on the + button to add the tessdata files. (Note: make sure "copy items into destination group's folder (if needed) is NOT checked, and "create folder references for any added folder" is CHECKED)
If that doesn't work, please find the method that is copying the tessdata to your app bundle, and check the error that it is returning.
Hope that works for you.

How to make a source attachement in eclipse?

Background: I am trying to use google analytics api's for java, to make their simple "helloAnalyticsApi" java code. But, I cannot even get past the basic steps of setting up eclipse and such.
Please see the link below:
https://code.google.com/p/google-api-java-client/wiki/Setup#google-api-client
In that link, they say:
Blockquote
Eclipse users will want to set the "Source attachment" for each class jar to its corresponding "-sources" jar
I dont know this means. Please tell me how to do what they say in the above sentence.
I tried a non-google tutorial, and it worked. But, when I try to make their sample java code, i get many errors which i mentioned in another post.
Thanks.
Download the API that is given.
Download the API that is given.
UNZIP the files in some directory
Make an eclipse Project say for example Analytics.
Goto the PROJECT tab click PROPERTIES and click on BUILD PATH
Click on ADD EXTERNAL JARS
Use the jars that you need for your project(Not all of them are REQUIRED).
you should be all set...
They have made simple steps really complicated by using the line
"Eclipse users will want to set the "Source attachment" for each class jar to its corresponding "-sources" jar..."

Problems with finding Three20 Header Files for iPhone App

I am trying to create an app using three20 for a photo viewer. When I follow the instructions on their site (which is now simply running a python script) it seems to behave correctly but then when I try to build I get a "No such file or directory" error for using #import <Three20/Three20.h>.
I am pretty sure the header search path is correct, but I can't seem to get it working, even when I follow exact tutorials online.
Has anyone seen this problem before and know how to fix it?
Have you checked to make sure you actually have added three20 into your dir. as I remember having a similar problem, when I tried to use three20 which was due to the fact it wasn't in the right place, when I thought it was.
It sounds like you haven't imported the files correctly. Have another look at where you added the files to you project, if you have at all. (If not, you need to drag them into your project first!)
If you try to compile the project without the file added to the project, it will fail. Simply adding a path is not enough.
You need to drag it into Xcode...
Add it to the project...
And then your code should build.
I hope this helps!

Integrating kal calendar in my application

I have religiously followed all the steps provided on the following link to integrate kal into my project. Everything went well with the steps but finally when I compiled my project (after adding the #import "Kal.h"), it raises a compilation error: Kal.h no such file or directory. I have tried this from iPhone SDK 4.1 and have really tried it many times so far. Your quick help is highly appreciated in this regard.
https://github.com/klazuka/Kal
You must have messed with the 6th point as your include path doesn't seem to cover this file:
Finally, we need to tell your project
where to find the Kal headers. Open
your "Project Settings" and go to the
"Build" tab. Look for "Header Search
Paths" and double-click it. Add the
relative path from your project's
directory to the "Kal/src" directory.
If you adjust it, it should work. Make sure to make the change for all configurations (debug, release, etc.).