mapSharedLibaries = (libraries) => {
  return libraries.map(name => {
    if (path.extname(name)) {
      return name;
    }
    return name + (name.indexOf('lib') === 0 ? '.tbd' : '.framework');
  });
}
For libraries specified without an extension, add '.tbd' for those that
start with 'lib' and '.framework' to the rest.