Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在中生成的PKPass文件未在iOS设备中打开_Ios - Fatal编程技术网

在中生成的PKPass文件未在iOS设备中打开

在中生成的PKPass文件未在iOS设备中打开,ios,Ios,是否有人使用PKFileBasedSigningUtil生成Apple pkpass文件 PKSigningInformation pkSigningInformation = new PKSigningInformationUtil().loadSigningInformationFromPKCS12AndIntermediateCertificate(keyStorePath, keyStorePassword, appleWWDRCA); PKPassTemplateFolder p

是否有人使用
PKFileBasedSigningUtil
生成Apple pkpass文件

PKSigningInformation pkSigningInformation = new  PKSigningInformationUtil().loadSigningInformationFromPKCS12AndIntermediateCertificate(keyStorePath,  keyStorePassword, appleWWDRCA);

PKPassTemplateFolder passTemplate = new PKPassTemplateFolder(template_path);

PKFileBasedSigningUtil pkSigningUtil = new PKFileBasedSigningUtil();
byte[] signedAndZippedPkPassArchive = pkSigningUtil.createSignedAndZippedPkPassArchive(pass, passTemplate, pkSigningInformation);
获取字节流
签名和ZippedPKPassarchive
后,写入文件并使用格式(abc.pkpass)。 这将在iOS设备中打开,但不会打开…但我可以在Android设备中打开。

如果您无法在iPhone上打开通行证,请将iPhone插入Mac并打开“控制台”应用程序。在左侧,您可以选择您的iPhone。然后,您将能够检查添加过程中出现的任何错误:

如果您无法在iPhone上打开通行证,请将iPhone插入Mac并打开“控制台”应用程序。在左侧,您可以选择您的iPhone。然后,您将能够检查添加过程中发生的任何错误: