介紹一個應(yīng)用-Log Guru,可以讀取手機(jī)日志,找到應(yīng)用無法安裝的原因。
只支持 Mac 10.9 以上版本
- 點(diǎn)擊下載 Log Guru
- 解壓打開 Log Guru
- 將不能安裝應(yīng)用的設(shè)備用數(shù)據(jù)線連接到電腦上
- 查看不能安裝的原因,如下圖: ( 查看常見的錯誤日志 )

FoTw_wa9SEIqYLV3crZKikzzMz5u.png
LogGuru 常見的錯誤日志
使用 LogGuru 的時(shí)候有一些常見的日志原因,可以供大家參考:
證書被封:
(Invalid signing certificate (it may have expired or been revoked))手機(jī)內(nèi)已安裝該應(yīng)用,但是應(yīng)用的證書和當(dāng)前下載的證書不同:
installd?0x100724000 -[MIInstallableBundle performVerificationWithError:]: 517: Upgrad e's application-identifier entitlement string (證書前綴1.BundleID) does not match installed application's application-identifier string (證書前綴2.BundleID); rejecting upgrade.```
解決方法:刪除舊的應(yīng)用,重新安裝。
3. 框架不支持:
```installd?0x2fe93000 install_application: Could not preflight application install
itunesstored?0x15f6000 MobileInstallationInstall: failed with -1
installd?0x2fe93000 handle_install: API failed```
解決方法:在Build Settings -->Valid Architectures中添加相應(yīng)的框架。
4. 沒有添加 UDID:
```installd?profile not valid: 0xe8008012
installd?0x385000 install_embedded_profile: Could not install embedded profile: 0xe8008012```
解決方法:添加該設(shè)備的 UDID
*相關(guān)鏈接:
https://fir.im/tools/log_guru
http://blog.fir.im/logs/*