Ad-Hoc 分布式应用程序未安装在设备上
Posted
技术标签:
【中文标题】Ad-Hoc 分布式应用程序未安装在设备上【英文标题】:Ad-Hoc distributed app does not installing on device 【发布时间】:2014-04-07 14:43:59 【问题描述】:我正在签署我的应用程序以进行临时分发。我已经创建了证书和配置文件,还检查了设备 UDID。
但是当我第一次创建分发证书并使用该证书和适当的配置文件对应用程序进行签名时,应用程序将无法正常工作。
但是当我第二次使用相同的证书和配置文件时,应用程序不起作用。它在设备上显示灰色图标,iTunes 显示正在安装.. 在应用程序中。
我检查了我的崩溃日志并打印出来
.................
..................
Apr 7 20:17:19 Dilip-Maneks-iPad librariand[114] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Apr 7 20:17:19 Dilip-Maneks-iPad librariand[114] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Apr 7 20:17:19 Dilip-Maneks-iPad geod[94] <Warning>: Can't get bundle identifier for process 424
Apr 7 20:17:23 Dilip-Maneks-iPad mobileassetd[107] <Error>: mobileassetd - _ASAssetDeletionPriorityAtDate: Unexpected value for keys __LastAccessDate, __InstallDate
Apr 7 20:17:23 Dilip-Maneks-iPad mobileassetd[107] <Error>: mobileassetd - _ASAssetDeletionPriorityAtDate: Unexpected value for keys __LastAccessDate, __InstallDate
Apr 7 20:17:23 Dilip-Maneks-iPad medialibraryd[93] <Warning>: MediaLibrary [MLWriter] ending transaction <__NSConcreteUUID 0x124530320> 7B9EAD03-51E8-4DE5-AF91-ECE8BBABA5E0. shouldCommit=0.
Apr 7 20:17:23 Dilip-Maneks-iPad librariand[114] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Apr 7 20:17:23 Dilip-Maneks-iPad librariand[114] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Apr 7 20:17:23 Dilip-Maneks-iPad deleted[424] <Error>: 0x100484000 __DeleteLibrarian_block_invoke: unable to determine evictable space: The operation couldn’t be completed. (LibrarianErrorDomain error 10 - Unable to configure the collection.)
Apr 7 20:17:29 Dilip-Maneks-iPad librariand[114] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Apr 7 20:17:29 Dilip-Maneks-iPad librariand[114] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Apr 7 20:17:29 Dilip-Maneks-iPad atc[1020] <Warning>: MediaLibrary Database validation succeeded
Apr 7 20:17:29 Dilip-Maneks-iPad librariand[114] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Apr 7 20:17:29 Dilip-Maneks-iPad librariand[114] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Apr 7 20:17:29 Dilip-Maneks-iPad geod[94] <Warning>: Can't get bundle identifier for process 424
【问题讨论】:
【参考方案1】:我遇到了类似的情况 - 在 iTunes 中,状态一直停留在“正在安装...”,同样在手机上,该应用程序有一个禁用的图标并且无法启动。
在我的情况下,解决方案是更正 Xcode 中的“团队”身份(目标 > 常规 > 身份 > 团队)并选择有效的 ios 分发证书(设置为 https://developer.apple.com/account/ios/certificate/certificateList.action)。我无意中将此设置保留为“无”。此证书必须是您在归档后选择的“分发”iOS 配置文件中引用的证书,在 Xcode 的管理器窗口中。
只有当一切都匹配时,您的临时应用才会安装和启动。请参阅本页底部:
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html
在标题为“深入了解 Ad Hoc Provisioning Profiles”的部分下
【讨论】:
以上是关于Ad-Hoc 分布式应用程序未安装在设备上的主要内容,如果未能解决你的问题,请参考以下文章
如何部署ad-hoc分发(ipa文件)或如何将iTunes与设备同步