@Override
    public MediaType detect(ZipFile zip, TikaInputStream tis) throws IOException {
        // Note - consider generalising this logic, if another format needs many regexp matching
        TmpPatterns tmpPatterns = new TmpPatterns();

        Enumeration<ZipArchiveEntry> entries = zip.getEntries();
        while (entries.hasMoreElements()) {
            ZipArchiveEntry entry = entries.nextElement();
            String name = entry.getName();

            tmpPatterns.patterns.removeIf(pattern -> pattern.matcher(name).matches());
            if (tmpPatterns.patterns.isEmpty()) {
                // We've found everything we need to find
                return MediaType.application("x-itunes-ipa");
            }
        }

        // If we get here, not all required entries were found
        return null;

    }
To be considered as an IPA file, it needs to match all of these
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-zip-commons/src/main/java/org/apache/tika/detect/zip/IPADetector.java