code: private PBXObjectRef addProduct(final Map objects, final TargetInfo linkTarget) {
  
      //
      // create file reference for executable file
      // forget Ant's location, just place in XCode's default location
      final PBXObjectRef executable = createPBXFileReference("BUILD_PRODUCTS_DIR", linkTarget.getOutput().getParent(),
          linkTarget.getOutput());
      final Map executableProperties = executable.getProperties();
  
      final String fileType = getFileType(linkTarget);
      executableProperties.put("explicitFileType", fileType);
      executableProperties.put("includeInIndex", "0");
      objects.put(executable.getID(), executableProperties);
  
      return executable;
    }
docs: Add file reference of product to map of objects.
  
  @param objects
  object map.
  @param linkTarget
  build description for executable or shared library.
  @return file reference to generated executable or shared library.