code: static void verifyXcodeFolder(final File xcodeFolder, final String projectName) throws XCodeVerificationException
    {
  
      if (!xcodeFolder.exists()) {
        throw new XCodeRootFolderDoesNotExistException("The folder \"" + xcodeFolder
              + "\" that is the root folder of the xcode project \"" + projectName + "\" does not exist.");
      }
  
      final String xcodeProjectFolderName = projectName + XCodeConstants.XCODE_PROJECT_EXTENTION;
  
      final Collection<File> xcodeProjectFolders = Arrays.asList(xcodeFolder.listFiles(new FileFilter() {
  
        @Override
        public boolean accept(File f)
        {
          return f.isDirectory() && f.getName().equals(xcodeProjectFolderName);
        }
      }));
  
      if (xcodeProjectFolders.size() == 0)
      {
        throw new XCodeProjectNotFoundException(
              "The folder \""
                    + xcodeFolder
                    + "\" must contain folder named \""
                    + xcodeProjectFolderName
                    + "\". This folder is expected to hold the xcode project configuration. The xcode project must have the same name as the maven artifactId");
      }
  
      for (final File xcodeProjectFolder : xcodeProjectFolders)
  
        if (xcodeProjectFolder.listFiles(new FileFilter() {
  
          @Override
          public boolean accept(File f)
          {
            return f.getName().equals(XCodeConstants.XCODE_CONFIGURATION_FILE_NAME);
          }
        }).length != 1)
          throw new XCodeProjectFileDoesNotExistException("Folder \"" + xcodeProjectFolders
                + "\" is expected to contain the file \""
                + XCodeConstants.XCODE_CONFIGURATION_FILE_NAME + "\" but that file does not exist.");
    }
docs: Checks if a folder is a valid xcode folder. A folder is considered to be a valid xcode folder
  if
  <ul>
  <li>it does exist
  <li>it contains a folder named "&lt;projectName&gt;.xcodeproj"
  <li>in the folder(s) mentioned before we have a file named project.pbxproj
  
  @throws XCodeException
  is the folder is not a valid xcode project folder