code: void packageArtifacts(final File compileDir, final MavenProject project, final Set<String> bundles)
          throws IOException, XCodeException
    {
  
      File mainArtifact = createMainArtifactFile(project);
  
      attachBundle(compileDir, project, bundles, mainArtifact);
  
      final File mainArtifactFile = archiveMainArtifact(project, mainArtifact);
      setMainArtifact(project, mainArtifactFile);
  
    }
docs: Packages all the artifacts. The main artifact is set and all side artifacts are attached for
  deployment.
  
  @param bundles
  
  @param buildDir