如何以编程方式获取ios项目中包含的框架和库的列表? [英] How can I programmatically get the list of frameworks and libraries included in an ios project?

查看:97
本文介绍了如何以编程方式获取ios项目中包含的框架和库的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Objective-C以编程方式获取ios项目中包含的所有库和框架的列表,并将该列表发送到服务器.如何获得此列表?

I am trying to get the list of all the libraries and frameworks included in an ios project, programmatically using Objective-C and send the list to the server. How to get this list?

推荐答案

来自

+allFrameworks
Returns an array of all of the application’s bundles that represent frameworks.

声明

//SWIFT 
class func allFrameworks() -> [AnyObject]

//OBJECTIVE-C
+ (NSArray *)allFrameworks

返回值

代表框架的所有应用程序捆绑包的数组.仅包括其中包含一个或多个Objective-C类的框架.

An array of all of the application’s bundles that represent frameworks. Only frameworks with one or more Objective-C classes in them are included.

讨论

返回的数组包括在构建应用程序时链接到应用程序的框架以及已动态创建的框架的捆绑包.

The returned array includes frameworks that are linked into an application when the application is built and bundles for frameworks that have been dynamically created.

进口声明

导入基金会

可用性

在iOS 2.0和更高版本中可用.

Available in iOS 2.0 and later.

这篇关于如何以编程方式获取ios项目中包含的框架和库的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆