de Jan
de Jan

Reputation: 55

is it possible: Using static library in iOS without including any header file?

I made one really basic static library prints only one string on the screen. I made it for ios device and I added header files in copy headers --> Project. The main .h file is SampleSubproject.h . After running I found the libSampleSubproject.a and copy to my project. When I am trying to use the library I call it in my .m file like

`#import "SampleSubproject/SampleSubproject.h"`.

it gives error

"SampleSubproject/SampleSubproject.h" is not found. 

Is it possible to use headers from library without making them public?

Upvotes: 0

Views: 436

Answers (1)

EXC_BAD_ACCESS
EXC_BAD_ACCESS

Reputation: 2707

As of i know, You can't. Since you are doing as a static library, you should add the header files.

Upvotes: 1

Related Questions