简体   繁体   English

如何记录IPA无法在iPad / iPhone上安装的原因

[英]How to get logs on why an IPA won't install on an iPad/iPhone

A Xamarin Forms app for iOS built using VS 2k19, with apparently everything (certs, app-ids, provisioning profile) done by the book will not install on the corresponding iPhone and iPad. 使用VS 2k19构建的适用于iOS的Xamarin Forms应用程序,显然本书完成的所有内容(证书,应用程序ID,配置文件)都不会安装在相应的iPhone和iPad上。

There is just a darkened icon, and a message ".... app cannot install. Please try again later." 只有一个黑暗的图标,并显示消息“....应用程序无法安装。请稍后再试。” or something to that effect. 或者那种效果。

This previously worked with a wildcard profile, but I had to change this to a specific profile for App Domain Associations entitlement. 这之前使用的是通配符配置文件,但我必须将其更改为App Domain Associations权利的特定配置文件。 I do believe I have the bundle id and everything correct. 我相信我有捆绑ID和一切正确。 Still, despite various attempts , the app will not install. 尽管如此,尽管有各种尝试,该应用程序仍无法安装。

I don't have the devices so I have to do this in a convoluted effort of trial and error. 我没有这些设备,所以我必须在一次错综复杂的试错中做到这一点。 Is there some way of asking the testers to get some detailed logs on why iTunes will not install the app, or the app cannot launch? 有没有办法让测试人员详细记录iTunes为什么不安装应用程序,或者应用程序无法启动?

添加您的设备UDID并通过选择所有设备再次生成配置文件。

To get logs I installed iTools and used the Console Logs feature while the install was happening. 为了获取日志,我安装了iTools并在安装过程中使用了Console Logs功能。 This is because my device was only being used to install the ipa, while builds were using macincloud. 这是因为我的设备仅用于安装ipa,而构建使用的是macincloud。

The actual issue was interesting. 实际问题很有意思。 In the entitlement.plist I had app domain association and push notifications set. 在entitlement.plist中,我设置了app域关联和推送通知。 The same in app Dev center. 在应用程序开发中心相同。 However, if the app Dev center does not have push entitlement fully configured, with push cert, the entitlement is ignored and the lists fail to match. 但是,如果应用程序开发人员中心没有完全配置推送权利,使用推送证书,则会忽略权利并且列表无法匹配。 Removing push temporarily fixed the install. 删除推送暂时修复了安装。 The error manifests in install logs as a signing verification failure. 该错误在安装日志中显示为签名验证失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM