Skip to content

Commit

Permalink
Fix for BundleName
Browse files Browse the repository at this point in the history
  • Loading branch information
ealeksandrov committed Feb 17, 2015
1 parent e991ac8 commit c99120f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ProvisionQL/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,

if([dataType isEqualToString:kDataType_ipa] || [dataType isEqualToString:kDataType_app]) {
NSDictionary *appPropertyList = [NSPropertyListSerialization propertyListWithData:appPlist options:0 format:NULL error:NULL];
[synthesizedInfo setObject:[appPropertyList objectForKey:@"CFBundleName"] forKey:@"CFBundleName"];

NSString *bundleName = [appPropertyList objectForKey:@"CFBundleDisplayName"];
if(!bundleName) {
bundleName = [appPropertyList objectForKey:@"CFBundleName"];
}
[synthesizedInfo setObject:bundleName forKey:@"CFBundleName"];
[synthesizedInfo setObject:[appPropertyList objectForKey:@"CFBundleIdentifier"] forKey:@"CFBundleIdentifier"];
[synthesizedInfo setObject:[appPropertyList objectForKey:@"CFBundleShortVersionString"] forKey:@"CFBundleShortVersionString"];
[synthesizedInfo setObject:[appPropertyList objectForKey:@"CFBundleVersion"] forKey:@"CFBundleVersion"];
Expand Down

0 comments on commit c99120f

Please sign in to comment.