code: private static PBXObjectRef createPBXReferenceProxy(final PBXObjectRef remoteRef, final DependencyDef dependency) {
      final Map map = new HashMap();
      map.put("isa", "PBXReferenceProxy");
      final String fileType = "compiled.mach-o.dylib";
      map.put("fileType", fileType);
      map.put("remoteRef", remoteRef);
      map.put("path", dependency.getFile().getName() + ".dylib");
      map.put("sourceTree", "BUILT_PRODUCTS_DIR");
      return new PBXObjectRef(map);
    }
docs: Create a proxy for a file in a different project.
  
  @param remoteRef
  PBXContainerItemProxy for reference.
  @param dependency
  dependency.
  @return PBXContainerItemProxy.