cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: [CB-3448] bin/diagnose_project script fails if CORDOVALIB variable not in prefs plist
Date Fri, 12 Jul 2013 00:17:06 GMT
Updated Branches:
  refs/heads/master 89f165e00 -> 7dcdf69fb


[CB-3448] bin/diagnose_project script fails if CORDOVALIB variable not in prefs plist


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/7dcdf69f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/7dcdf69f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/7dcdf69f

Branch: refs/heads/master
Commit: 7dcdf69fb26596c0c16b5c83695c9bb4c6bb5d72
Parents: 89f165e
Author: Shazron Abdullah <shazron@apache.org>
Authored: Thu Jul 11 17:16:58 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Thu Jul 11 17:16:58 2013 -0700

----------------------------------------------------------------------
 bin/diagnose_project | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/7dcdf69f/bin/diagnose_project
----------------------------------------------------------------------
diff --git a/bin/diagnose_project b/bin/diagnose_project
index e52f83c..1879fe1 100755
--- a/bin/diagnose_project
+++ b/bin/diagnose_project
@@ -156,7 +156,8 @@ def main(argv):
 	xcodeBinaryPrefsPath = os.path.join( os.path.expanduser("~"), "Library", "Preferences",
"com.apple.dt.Xcode.plist" );
 	xcodePrefsPlist = getXcodePlist(xcodeBinaryPrefsPath)
 
-	xcodeCordovaLib = xcodePrefsPlist['IDEApplicationwideBuildSettings'].get("CORDOVALIB", "(not
found)")
+	ideSetting = xcodePrefsPlist.get('IDEApplicationwideBuildSettings', {})
+	xcodeCordovaLib = ideSetting.get("CORDOVALIB", "(not found)")
 	print "CORDOVALIB:", xcodeCordovaLib
 	print "Build Location Style:", xcodePrefsPlist.get('IDEBuildLocationStyle', "(unknown)")
 


Mime
View raw message