diff --git a/platforms/ios.js b/platforms/ios.js
index <HASH>..<HASH> 100644
--- a/platforms/ios.js
+++ b/platforms/ios.js
@@ -106,7 +106,7 @@ exports.installPlugin = function (config, plugin, callback) {
 
         // write out plist
         plistObj[0].Plugins[plistEle.attrib['key']] = plistEle.attrib['string'];
-        fs.writeFile(plistPath, plist.stringify(plistObj), end);
+        fs.writeFile(plistPath, plist.stringify(plistObj[0]), end);
 
         // write out xcodeproj file
         fs.writeFile(pbxPath, xcodeproj.writeSync(), end);
diff --git a/test/ios-install.js b/test/ios-install.js
index <HASH>..<HASH> 100644
--- a/test/ios-install.js
+++ b/test/ios-install.js
@@ -102,7 +102,7 @@ exports['should edit PhoneGap.plist'] = function (test) {
         var plistPath = config.projectPath + '/SampleApp/PhoneGap.plist';
         plist.parseFile(plistPath, function (err, obj) {
 
-            test.equal(obj[0].Plugins['com.phonegap.plugins.childbrowser'],
+            test.equal(obj.Plugins['com.phonegap.plugins.childbrowser'],
                 'ChildBrowserCommand');
 
             test.done();
[ios] fixing plist writing