1***@qq.com
1***@qq.com
  • 发布:2021-01-18 14:06
  • 更新:2021-01-18 14:11
  • 阅读:608

【报Bug】iOS证书密码带有特殊符号导致打包失败

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 10.15.3 (19D76)

HBuilderX版本号: 3.0.7

操作步骤:

iOS证书保护密码中带有特殊字符''<>?{}[];等

预期结果:

由于我们部分项目中使用的是随机密码,我们希望这些证书可以进行打包

实际结果:

打包失败。似乎是密码里的特殊字符造成。

bug描述:

本地安装包生成失败,请重试或者切换到非安心打包模式进行打包

日志
[Info] begin copyFile files to ipa...
[Info] begin replace files to ipa...
[Info] begin update mobileprovision to ipa...
[Info] begin outPut t_entitlements_full plist file...
[Info] begin outPut outPutEntitlements plist file...
[Info] begin verifyPlistFiles
[Info] verifyFiles is empty
[Info] begin update files to ipa...
[Info] begin createKeychain...
[Info] begin unlockKeychain...
[Info] begin setListKeychains...
[Info] begin importAppleCerts...
[Info] 1 certificate imported.
[Info] 1 certificate imported.
[Info] 1 certificate imported.
[Info] begin importSecurity...
[Error] import: option requires an argument -- P
[Error] Usage: import inputfile [-k keychain] [-t type] [-f format] [-w] [-P passphrase] [options...]
[Error] -k Target keychain to import into
[Error] -t Type = pub|priv|session|cert|agg
[Error] -f Format = openssl|openssh1|openssh2|bsafe|raw|pkcs7|pkcs8|pkcs12|netscape|pemseq
[Error] -w Specify that private keys are wrapped and must be unwrapped on import
[Error] -x Specify that private keys are non-extractable after being imported
[Error] -P Specify wrapping passphrase immediately (default is secure passphrase via GUI)
[Error] -a Specify name and value of extended attribute (can be used multiple times)
[Error] -A Allow any application to access the imported key without warning (insecure, not recommended!)
[Error] -T Specify an application which may access the imported key (multiple -T options are allowed)
[Error] Use of the -P option is insecure
[Error] Import items into a keychain.
[Error] -A: <abcd>: No such file or directory
[Error] importSecurity failed
[Info] Package make result:Failed. Reason:

上边日志里最后三行 <abcd> 处很像我的私钥密码,但是我的密码带有特殊符号比如;1Jn}Qh}a/q!DJ@D70rhCs3cyK"CKp这种随机字符,日志里出现的这里没有特殊符号了。

然后我重新生成简单的数字字母作为密码的证书格式,密码如下1bcdefg8
这样就打包成功了。

2021-01-18 14:06 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

使用云打包则打包成功。

该问题目前已经被锁定, 无法添加新回复