Reputation: 409
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?
Upvotes: 4
Views: 4365
Reputation: 5162
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.
Upvotes: 9