简体   繁体   English

iOS静态库-是否可以在我的库中包含AdSupport.framework?

[英]iOS Static library - is it possible to include AdSupport.framework in my library?

I'm using objective-c, xcode7. 我正在使用Objective-C,xcode7。

I've created a static library that uses ASIdentifierManager, included in "AdSupport.framework". 我创建了一个使用ASIdentifierManager的静态库,该库包含在“ AdSupport.framework”中。

Now when someone wants to use my *.a file, they have to include "AdSupport.framework" in their project as well. 现在,当有人要使用我的* .a文件时,他们还必须在项目中包含“ AdSupport.framework”。

Is it possible to include "AdSupport.framework" in my compiled *.a library so that others will not have to? 是否可以在已编译的* .a库中包含“ AdSupport.framework”,这样其他人就不必这样做了?

No, this is a system library. 不,这是一个系统库。 Include the requirement that they link to it in your integration instructions. 在集成说明中包括他们链接到它的要求。 If you're supporting a dependency manager like CocoaPods you can define this requirement in the PodSpec so that it is taken care of for them. 如果您支持像CocoaPods这样的依赖项管理器,则可以在PodSpec中定义此要求,以便为他们解决。

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

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