scripts/module-postlink.js
function(fileName)
    {
      var configurations = xcodeProject.pbxXCBuildConfigurationSection(),
        INHERITED = '"$(inherited)"',
        config, buildSettings, searchPaths;

      var fileDir = path.dirname(fileName);
      var filePos = '"\\"' + fileDir + '\\""';

      for (config in configurations) {
          buildSettings = configurations[config].buildSettings;

          if(!buildSettings || !buildSettings['PRODUCT_NAME'])
            continue;

          if (!buildSettings['FRAMEWORK_SEARCH_PATHS']
              || buildSettings['FRAMEWORK_SEARCH_PATHS'] === INHERITED) {
              buildSettings['FRAMEWORK_SEARCH_PATHS'] = [INHERITED];
          }

          buildSettings['FRAMEWORK_SEARCH_PATHS'].push(filePos);
      }
    }
function(fileName)
    {
      var configurations = xcodeProject.pbxXCBuildConfigurationSection(),
        INHERITED = '"$(inherited)"',
        config, buildSettings, searchPaths;

      var fileDir = path.dirname(fileName);
      var filePos = '"\\"' + fileDir + '\\""';

      for (config in configurations) {
          buildSettings = configurations[config].buildSettings;

          if(!buildSettings || !buildSettings['PRODUCT_NAME'])
            continue;

          if (!buildSettings['FRAMEWORK_SEARCH_PATHS']
              || buildSettings['FRAMEWORK_SEARCH_PATHS'] === INHERITED) {
              buildSettings['FRAMEWORK_SEARCH_PATHS'] = [INHERITED];
          }

          buildSettings['FRAMEWORK_SEARCH_PATHS'].push(filePos);
      }
    }
function ( fileName ) { var configurations = xcodeProject . pbxXCBuildConfigurationSection ( ) , INHERITED = '"$(inherited)"' , config , buildSettings , searchPaths ; var fileDir = path . dirname ( fileName ) ; var filePos = '"\\"' + fileDir + '\\""' ; for ( config in configurations ) { buildSettings = configurations [ config ] . buildSettings ; if ( ! buildSettings || ! buildSettings [ 'PRODUCT_NAME' ] ) continue ; if ( ! buildSettings [ 'FRAMEWORK_SEARCH_PATHS' ] || buildSettings [ 'FRAMEWORK_SEARCH_PATHS' ] === INHERITED ) { buildSettings [ 'FRAMEWORK_SEARCH_PATHS' ] = [ INHERITED ] ; } buildSettings [ 'FRAMEWORK_SEARCH_PATHS' ] . push ( filePos ) ; } }
Override addToFrameworkSearchPaths to add the framework path to all targets. The one provided in the xcode module adds the wrong path and not to the right target.
Override addToFrameworkSearchPaths to add the framework path to all targets . The one provided in the xcode module adds the wrong path and not to the right target .