Yit Ming
Yit Ming

Reputation: 383

compiling compiling/bundling an external framework to my static library/framework for iOS SDK

im trying to build a framework that uses methods from a 3rd party framework. I would like to hide the methods 3rd party framework from being accessible by the user of my framework.

I tried compiling using static library method and framework method.. but the 3rd party framework doesn't seems to be included in my framework..

any one know how can i bundle the 3rd party framework in my library file?

any help is much much appreciated.

Upvotes: 0

Views: 100

Answers (2)

Till
Till

Reputation: 27597

There is nothing wrong in having a dependency in your static library / custom framework. Simply inform the user about it and, if possible, bundle the depended library in your distribution.

ObjectiveC does not allow the usage of namespaces, hence there is no way to "hide" the methods of a static library effectively.

Upvotes: 1

Niko
Niko

Reputation: 2543

It's not possible to include a static library or another framework inside an home-made framework. The user will need to add both your framework and a static library (3rd party methods) in its project to be able to use it.

Upvotes: 1

Related Questions