Monday, 9 September 2013

iPhone / iPad IOS How To Get Framework Bundle Version

iPhone / iPad IOS How To Get Framework Bundle Version

Trying to get a .framework 's bundle version. Tried to find the file using
path for resource and then use NSBundle something like...
NSString *path = [[NSBundle mainBundle]
pathForResource:@"SomeFramework" ofType:@"framework"];
NSBundle *bundle = [[NSBundle alloc] initWithPath:path];
_version = [bundle objectForInfoDictionaryKey:(NSString
*)kCFBundleVersionKey];
But path keeps coming back nil......
Better way?

No comments:

Post a Comment