Skip to content

TypeError: buildSettings[OTHER_LDFLAGS].filter is not a function #1

@vanBrunneren

Description

@vanBrunneren

when I try to run your plugin to upgrade from 0.25.1 to 0.26.0 i get the following error:

/MyApp/node_modules/rnpm-plugin-upgrade/node_modules/xcode/lib/pbxProject.js:1240
            var matches = buildSettings[OTHER_LDFLAGS].filter(function (p) {
                                                       ^

TypeError: buildSettings[OTHER_LDFLAGS].filter is not a function
    at pbxProject.removeFromOtherLinkerFlags (/MyApp/node_modules/rnpm-plugin-upgrade/node_modules/xcode/lib/pbxProject.js:1240:56)
    at upgradeIOSProject (/MyApp/node_modules/rnpm-plugin-upgrade/src/upgrade.js:12:11)
    at Object.upgrade [as func] (/MyApp/node_modules/rnpm-plugin-upgrade/src/upgrade.js:36:5)
    at Command.runAction (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/bin/cli:21:15)
    at Command.listener (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/node_modules/commander/index.js:301:8)
    at emitTwo (events.js:100:13)
    at Command.emit (events.js:185:7)
    at Command.parseArgs (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/node_modules/commander/index.js:615:12)
    at Command.parse (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/node_modules/commander/index.js:458:21)
    at Object.<anonymous> (/.nvm/versions/node/v5.9.0/lib/node_modules/rnpm/bin/cli:27:5)

do you have any idea how to fix this issue or am I doing something the wrong way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions