code: function eachBuildConfiguration(project, predicate, callback) {
      const config = project.pbxXCBuildConfigurationSection();
      Object.keys(config)
          .filter(ref => ref.indexOf('_comment') === -1)
          .filter(ref => predicate(config[ref]))
          .forEach(ref => callback(config[ref]));
  }
docs: based on: https://github.com/facebook/react-native/blob/545072b/local-cli/link/ios/mapHeaderSearchPaths.js#L5