简体   繁体   English

编译/将外部框架编译/捆绑到我的iOS SDK静态库/框架

[英]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. 任何帮助都非常感激。

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. 用户需要在其项目中添加框架和静态库(第三方方法)才能使用它。

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. ObjectiveC不允许使用命名空间,因此无法有效地“隐藏”静态库的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM