Question

I need to use a library in a Cocoa application and can use either a dynamic (.dynlib) or a static (.a) version of it. I came from Linux world and would happily use the dynlib. However, since the app bundle will contain all the dependencies (including the dynlib) I thought it would not be a problem to have a bigger binary due to the static linking. What is the best solution?

Was it helpful?

Solution

In this case, my concern would be responsiveness with respect to loading time of big executable vs. small executable and multiple libraries. The difference may be small.

OTHER TIPS

iOS app should NOT have any dynamic libraries. Your only option is to statically link code.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top