美文网首页
iOS 安装自我排查工具

iOS 安装自我排查工具

作者: 领导的玩具 | 来源:发表于2020-03-17 10:30 被阅读0次

iOS安装自我排查文档

工具使用 for Mac :

  • brew install libimobiledevice

使用方式 <big> ideviceinstaller -i xx.ipa </big>

VerifyingApplication 无法安装

现象:

VerifyingApplication (40%)ERROR: Install failed. Got error "ApplicationVerificationFailed" with code 0xe8008015: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.P5QqvZ/extracted/Payload/trunk.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)

pro1.png

现象描述:

这种情况,100%是由包内的证书引起的。

  • 排查步骤:
    1. 拿到ipa包,把后缀名改成zip,解压
    2. 看到xx.app,右键show content, 找到 embedded.mobileprovision
    3. 空格打开

1.这种是developer证书,这种证书只能使用注册了下面的deviceid的机器安装,别的机器过不了系统签名验证。

pro1-1.png

2. 这种是企业证书,能使所有机器能安装

pro1-2.png

解决方法

  1. 先把确定用什么方式打包,如果用企业证书打InHouse,那么就排查出包命令(实在不行,先从xcode手动出包,看是否能装)
  2. 证书校验
  3. 证书是否过期

证书相关知识:

  • 苹果证书的类别:
    • 企业证书 (299美金/年,申请比较困难,需要公司现申请邓白氏编码)
    • 公司证书 (99美金/年)
    • 个人证书 (99美金/年)
证书类别 价格 distribuition安装 是否能上appstore 安装是否需要注册uuid
企业 299美金 inHouse
公司 99美金 adhoc/applestore
个人 99美金 adhoc/applestore

相关文章

网友评论

      本文标题:iOS 安装自我排查工具

      本文链接:https://www.haomeiwen.com/subject/wqvzehtx.html