user732274
user732274

Reputation: 1069

NSBundle returning every system framework

On Mountain Lion, using Xcode 4.6.2, the following code

for (NSBundle *aBundle in [NSBundle allFrameworks]) NSLog(@"%@", [aBundle bundlePath]);

logs EVERYTHING, I mean every framework installed in the system (so not just the app's ones, as stated in NSBundle documentation).

Can this be normal?

Upvotes: 0

Views: 109

Answers (1)

CodaFi
CodaFi

Reputation: 43330

Libraries that are implicitly linked to, either by the runtime or by the frameworks you link to themselves, are also included in that list. It may not be every system framework, but it certainly is quite a lot.

Upvotes: 2

Related Questions