Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I programmatically get the list of frameworks and libraries included in an ios project?

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?

like image 215
auditya Avatar asked Oct 20 '25 05:10

auditya


1 Answers

From NSBundle

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

Declaration

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

//OBJECTIVE-C
+ (NSArray *)allFrameworks

Return Value

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.

Discussion

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.

Import Statement

import Foundation

Availability

Available in iOS 2.0 and later.

like image 77
Ajith R Nayak Avatar answered Oct 21 '25 18:10

Ajith R Nayak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!