Repository: cordova-node-xcode
Updated Branches:
  refs/heads/master 322f304e1 -> be8498daf


add check for isArray so that strings don't cause an error when calling .filter

 This closes #4


Project: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/commit/be8498da
Tree: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/tree/be8498da
Diff: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/diff/be8498da

Branch: refs/heads/master
Commit: be8498daf8159033c884c03622eead34a3ea1e90
Parents: 322f304
Author: Paul Dixon <[email protected]>
Authored: Sun Sep 24 12:07:54 2017 +0100
Committer: Steve Gill <[email protected]>
Committed: Tue Sep 26 11:43:39 2017 -0700

----------------------------------------------------------------------
 lib/pbxProject.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/blob/be8498da/lib/pbxProject.js
----------------------------------------------------------------------
diff --git a/lib/pbxProject.js b/lib/pbxProject.js
index 18033bb..8047d00 100644
--- a/lib/pbxProject.js
+++ b/lib/pbxProject.js
@@ -1110,7 +1110,7 @@ pbxProject.prototype.removeFromFrameworkSearchPaths = 
function(file) {
 
         searchPaths = buildSettings[SEARCH_PATHS];
 
-        if (searchPaths) {
+        if (searchPaths && Array.isArray(searchPaths)) {
             var matches = searchPaths.filter(function(p) {
                 return p.indexOf(new_path) > -1;
             });
@@ -1157,7 +1157,7 @@ pbxProject.prototype.removeFromLibrarySearchPaths = 
function(file) {
 
         searchPaths = buildSettings[SEARCH_PATHS];
 
-        if (searchPaths) {
+        if (searchPaths && Array.isArray(searchPaths)) {
             var matches = searchPaths.filter(function(p) {
                 return p.indexOf(new_path) > -1;
             });


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to