Fixed: nib2cib'ed files different with jake release and jake deploy.

Without this fix, if you ran `nib2cib` on its own on your UI files you could get a different result than what `jake release` or `jake deploy` would produce. In particular the `NSClasses` setting would be ignored unless `jake release` was used.

The reason for this bug was that the main bundle was never loaded and so the `Info.plist` was not read. But when using `jake release` (and deploy) the main bundle and the `Info.plist` gets baked in so it's always automatically loaded.

The fix is to load the main bundle before checking its settings.
This commit is contained in:
Alexander Ljungberg committed 2016-08-10 13:22:04 +01:00
1 parent dde805931d
commit f4c11d14e7
1 file changed
+4 -1
+4 -1
View File
@@ -204,7 +204,10 @@ var FILE = require("file"),
[self loadThemesFromList:themeList];
[self loadFrameworks:options.frameworks verbosity:options.verbosity];
[self loadNSClassesFromBundle:[CPBundle mainBundle]];
var mainBundle = [CPBundle mainBundle];
[mainBundle loadWithDelegate:nil];
[self loadNSClassesFromBundle:mainBundle];
var frameworkList = [];