我使用 CI 系统自动构建 ipa。
基本上我在构建脚本中调用了这个命令行:
xcrun -sdk iphoneos PackageApplication -v $APP -o $Output --sign "$Company_name" --embed "$Provision_path"
在我将 xcode 更新到 4.5.1 并将 $Provision_path 更改为新路径之前,它运行良好。
之后无法安装 ipa,错误如下:
<Error>: 0x1c1000 handle_install: Install of "$apppath.ipa" requested by itunesstored
<Error>: 0x1c1000 MobileInstallationInstall_Server: Installing $appID
<Error>: Nov 16 10:08:31 SecTrustEvaluate [leaf AnchorSHA1 IssuerCommonName]
<Error>: Nov 16 10:08:33 SecTrustEvaluate [leaf AnchorTrusted]
<Error>: developer cert trust result = 5
<Error>: 0x1c1000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.EuYJEL/foo_extracted/Payload/name.app/name: 0xe8008018
<Error>: 0x1c1000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.EuYJEL/foo_extracted/Payload/name.app
<Error>: 0x2ff9a000 MobileInstallationInstall: failed with -1
<Error>: 0x1c1000 install_application: Could not preflight application install
<Error>: 0x1c1000 handle_install: API failed
我检查了构建日志,这次和上次的区别是 $SignName
/usr/bin/codesign --force --sign "$SignName" --resource-rules=*** --entitlements ***
我相信与命令行中$SignName
的完全相同$Company_name
。
但目前,$SignName
类似于e38e96a4asfsdd779db94ceasdfg24d9assdf898
. 有谁知道可能的问题是什么?