simonbs
simonbs

Reputation: 8042

Test static library or share it between projects

I am going to make a static library which will be used in several of my applications. This library will also be released so that everybody can use it. Therefore I am not interested in anyone seeing the code and that it is very easy to implement in a project.

I have chosen to use Michael Tyson's template for universal static libraries. This template relies on the Adam Martins universal static library script.

Now, I would like a way to test my library on a device and as I need to use this library in other projects, I was thinking just to link it to another project and test the library through this project. I just can't figure out how I would accomplish this. Can anyone guide me through this?

Upvotes: 1

Views: 83

Answers (1)

Ankit Srivastava
Ankit Srivastava

Reputation: 12405

Copy all your .h files from the library project to your new project and then just drag and drop the library to your new project... don't copy the library into your new project .. this way if you make any changes in the library they will be reflected in your projet and you won't have to repeat the process again.. (just make sure both the builds are same for example if you develop the library using device scheme than your project should also compile under the device scheme. you can make a FAT library as well but that will require more work and you can look into it later.) hoping this helps..

you can refer this tutorial for some more graphic info..

Upvotes: 1

Related Questions