Fix for nill bundle identifier.

This commit is contained in:
Riccardo Mottola 2017-08-16 07:26:43 +02:00
parent b4a148712e
commit bf394dce9c
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2017-08-16 Riccardo Mottola <rm@gnu.org>
* Modules/Projects/Application/PCAppProject.m
Fix for nill bundle identifier.
2017-01-17 Riccardo Mottola <rm@gnu.org>
* Framework/PCProjectManager.m

View file

@ -245,7 +245,10 @@
forKey:@"NSMainNibFile"];
[infoDict setObject:[projectDict objectForKey:PCPrincipalClass]
forKey:@"NSPrincipalClass"];
[infoDict setObject:[projectDict objectForKey:PCBundleIdentifier] forKey:@"CFBundleIdentifier"];
// most probably empty
if ([projectDict objectForKey:PCBundleIdentifier])
[infoDict setObject:[projectDict objectForKey:PCBundleIdentifier] forKey:@"CFBundleIdentifier"];
// Write to ProjectNameInfo.plist
_file = [NSString stringWithFormat:@"%@Info.plist",projectName];