{"action":"created","issue":{"url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade/issues/1","repository_url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade","labels_url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade/issues/1/comments","events_url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade/issues/1/events","html_url":"https://github.com/rnpm/rnpm-plugin-upgrade/issues/1","id":155757848,"number":1,"title":"TypeError: buildSettings[OTHER_LDFLAGS].filter is not a function","user":{"login":"vanBrunneren","id":11269836,"avatar_url":"https://avatars.githubusercontent.com/u/11269836?v=3","gravatar_id":"","url":"https://api.github.com/users/vanBrunneren","html_url":"https://github.com/vanBrunneren","followers_url":"https://api.github.com/users/vanBrunneren/followers","following_url":"https://api.github.com/users/vanBrunneren/following{/other_user}","gists_url":"https://api.github.com/users/vanBrunneren/gists{/gist_id}","starred_url":"https://api.github.com/users/vanBrunneren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanBrunneren/subscriptions","organizations_url":"https://api.github.com/users/vanBrunneren/orgs","repos_url":"https://api.github.com/users/vanBrunneren/repos","events_url":"https://api.github.com/users/vanBrunneren/events{/privacy}","received_events_url":"https://api.github.com/users/vanBrunneren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-19T14:56:51Z","updated_at":"2016-08-04T08:05:28Z","closed_at":null,"body":"when I try to run your plugin to upgrade from 0.25.1 to 0.26.0 i get the following error:\r\n\r\n```\r\n/MyApp/node_modules/rnpm-plugin-upgrade/node_modules/xcode/lib/pbxProject.js:1240\r\n            var matches = buildSettings[OTHER_LDFLAGS].filter(function (p) {\r\n                                                       ^\r\n\r\nTypeError: buildSettings[OTHER_LDFLAGS].filter is not a function\r\n    at pbxProject.removeFromOtherLinkerFlags (/MyApp/node_modules/rnpm-plugin-upgrade/node_modules/xcode/lib/pbxProject.js:1240:56)\r\n    at upgradeIOSProject (/MyApp/node_modules/rnpm-plugin-upgrade/src/upgrade.js:12:11)\r\n    at Object.upgrade [as func] (/MyApp/node_modules/rnpm-plugin-upgrade/src/upgrade.js:36:5)\r\n    at Command.runAction (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/bin/cli:21:15)\r\n    at Command.listener (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/node_modules/commander/index.js:301:8)\r\n    at emitTwo (events.js:100:13)\r\n    at Command.emit (events.js:185:7)\r\n    at Command.parseArgs (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/node_modules/commander/index.js:615:12)\r\n    at Command.parse (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/node_modules/commander/index.js:458:21)\r\n    at Object.<anonymous> (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/bin/cli:27:5)\r\n```\r\n\r\ndo you have any idea how to fix this issue or am I doing something the wrong way?"},"comment":{"url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade/issues/comments/237482350","html_url":"https://github.com/rnpm/rnpm-plugin-upgrade/issues/1#issuecomment-237482350","issue_url":"https://api.github.com/repos/rnpm/rnpm-plugin-upgrade/issues/1","id":237482350,"user":{"login":"jrnk","id":5436814,"avatar_url":"https://avatars.githubusercontent.com/u/5436814?v=3","gravatar_id":"","url":"https://api.github.com/users/jrnk","html_url":"https://github.com/jrnk","followers_url":"https://api.github.com/users/jrnk/followers","following_url":"https://api.github.com/users/jrnk/following{/other_user}","gists_url":"https://api.github.com/users/jrnk/gists{/gist_id}","starred_url":"https://api.github.com/users/jrnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrnk/subscriptions","organizations_url":"https://api.github.com/users/jrnk/orgs","repos_url":"https://api.github.com/users/jrnk/repos","events_url":"https://api.github.com/users/jrnk/events{/privacy}","received_events_url":"https://api.github.com/users/jrnk/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T08:05:28Z","updated_at":"2016-08-04T08:05:28Z","body":"Search your `project.pbxproj` for `OTHER_LDFLAGS` (it's in it multiple times) and make sure it's an array instead of just a string. So \r\n```\r\nOTHER_LDFLAGS = \"-ObjC\";\r\n```\r\nto \r\n```\r\nOTHER_LDFLAGS = (\r\n\t\t\t\t\t\"-ObjC\",\r\n\t\t\t\t\t\"-lc++\",\r\n\t\t\t\t);\r\n```"}}
{"actor":{"display_login":"jrnk"}}