2

I need to import a library in iOS but I can't seem to figure out how. I have an .A file and an 'include' folder in my finder. the 'include' folder has a few .h files and nothing else.

I cant seem to initialize the library, I've tried Build phases > Link binary with library > add Other and added the .a file

Even after adding it I can't seem to initialize or use the classes in that library. (Use of undeclared identifier)

I'm new to iOS and need acute instructions to implement and understand this.

Thanks.

Droppy
  • 9,691
  • 1
  • 20
  • 27
jamian
  • 1,544
  • 2
  • 16
  • 25
  • You may need to set the lib header paths: "Build Settings/Header Search Path" to the one of you "include" folder with the .h and also in the flags, add `-lyourLib` if it's `libyourLib.a` – Larme Nov 02 '16 at 12:46
  • Sounds like you are getting there (using *Link binary with library* is correct). You should also have `.h` files with the `.a` file so you can import the `.h` files and start using the classes contained in the `.a` file. – Droppy Nov 02 '16 at 13:16

0 Answers0