alunny / node-xcode

tools and utilities for working with xcode/ios projects
Apache License 2.0
225 stars 105 forks source link

searchPaths.filter is not a function #133

Open pietro909 opened 6 years ago

pietro909 commented 6 years ago

See this issue on react-native about how to reproduce it.

The error is located in lib/pbxProject.js, in removeFromFrameworkSearchPaths and `addToFrameworkSearchPaths:

if (searchPaths) {
    var matches = searchPaths.filter(function(p) {

I've noticed that there are no tests for those functions, maybe we can work together to cover those cases?

Thanks