@Test
public void parseIpa() {

    URL fileUrl = this.getClass().getClassLoader().getResource("back_test/test.ipa");
    if (fileUrl == null) {
        return;
    }
    String filePath = fileUrl.getPath();
    File file = new File(filePath);
    IpaParseRes res = IpaUtil.parseIpa(file);
    if (res != null) {
        System.out.println("get valid param as follows");
        System.out.println(res.getBundleId());
        System.out.println(res.getBundleVersion());
        System.out.println(res.getDisplayName());
        System.out.println(res.getVersionNameOnAppStore());
        System.out.println(res.getBundleName());
        System.out.println(res.getMinIOSVersion());
        System.out.println(res.getTeamName());
        for (String eachIconName : res.getIconNameList()) {
            System.out.println(eachIconName);
        }
        //图片存储到目标路径
        //String storePath = "C:\\Users\\Administrator\\Desktop\\test_img_store";
        String storePath = "C:" + File.separator + "Users" + File.separator + "Administrator" + File.separator + "Desktop" + File.separator + "test_img_store";
        IpaUtil.parseAndStoreFile(file, res.getIconNameList(), storePath);
    }
}