Reputation: 5823
I need to build sub-projects as static libraries, not too sure how I should do it, should I:
are the above steps correct?
Also, do I need to compile them in release(or debug) mode, and for simulator and device respectively?
Thanks!
Upvotes: 3
Views: 3355
Reputation: 7504
I use static library in my project. The steps you mentioned are correct except remove all sub projects? Why do you need to have sub projects at all. They all ideally should be independent libraries compiled independently and you just add .a file and main header files in the main project. If you do this you don't need to update your main project when your static library changes. You just need to update .a file or .h incase they changed....and yes you will need to compile static libraries in release mode when you want to submit your App to appstore. Simulator and device really doesn't matter as it's not going to run. It's all matter is iOS target and base SDK that you complied against.
Upvotes: 0