通过In House的方式去打包了个企业版的iOS的app,通过OTA(over-the-air)去发布到自己的已经加了https的服务器上:
对应html代码中,已经包含了对应的下载链接了:
$(‘.ios-btn’)[0].onclick = function () { if (jumpBrowser()) { window.location.href = ‘itms-services://?action=download-manifest&url=https://salesapp.qorosauto.com/ios/manifest.plist’; } }; |
然后对应的manifest.plist,也是和.ipa放在同一路径下的:
[[email protected] ios]$ pwd /usr/share/nginx/html/ios [[email protected] ios]$ ll total 32792 -rw-r–r–. 1 useradmin useradmin 1113 Aug 10 12:55 manifest.plist -rwxrwxrwx. 1 useradmin useradmin 16783515 Aug 10 07:33 salesapp.ipa |
manifest.plist的内容是:
<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> <string>software-package</string> <key>url</key> <string>https://salesapp.qorosauto.com/ios/salesapp.ipa</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/salesapp_512x512.png</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/salesapp_57x57.png</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>com.qorosauto.QorosSalesApp</string> <key>bundle-version</key> <string>0.9.0</string> <key>kind</key> <string>software</string> <key>title</key> <string>观致集客管家</string> </dict> </dict> </array> </dict> </plist> |
然后对应的图片也放在了对应的位置:
[[email protected] ios]$ cd ../logo [[email protected] logo]$ pwd /usr/share/nginx/html/logo [[email protected] logo]$ ll total 36 -rwxrwxrwx. 1 useradmin useradmin 10474 Aug 10 09:05 SalesApp_180x180.png -rwxrwxrwx. 1 useradmin useradmin 19555 Jul 12 13:48 SalesApp_512x512.png -rwxrwxrwx. 1 useradmin useradmin 2537 Jul 12 13:48 SalesApp_57x57.png |
对于用一个iOS 9.3的iPhone 6中,去打开Safari浏览器,进入下载页面:
点击下载按钮 下载安装iOS 后,弹出下载提示,点击安装:
后,
现象是:
第一次去下载和安装,是可以正常安装的。
但是之后再去尝试下载和安装,就始终都无法正常现在和安装。
经过大量尝试发现,基本上都是在:
进度加载到60%左右的时候,就停止掉了,然后就弹出提示:
无法下载应用
此时无法下载“xxx”
完成 重试
如图:
试了几十次,都无果。
也尝试过,重启iPhone,
重启Safari浏览器
等等,都还是不行。
然后也去用了别人的iOS 8的iPhone 5去测试,结果也是同样的现象,也是加载到一半多一点,就出现上述提示,无法继续了。
搜:
ios safari 无法下载应用 此时无法下载
无法下载应用程序,此时无法下载/安装 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单
无法下载应用程序,此时无法下载应用 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单
苹果手机此时无法下载 iPhone此时无法下载应用_百度经验
iPhone 下载应用时出现「此时无法下载应用程序」该如何解决? – 知乎
企业版分发 无法下载应用 此时无法下载
蒲公英 – 文档中心 – iOS 8 及 iOS 8 以上版本安装修复
也去试了试在
manifest.plist
中的:
bundle id后面加上数字:
<key>bundle-identifier</key> <string>com.qorosauto.QorosSalesApp.1234</string> |
结果还是不行。
无法下载应用程序 此时无法安装 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单
ipa打包企业签名 无法安装 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单
xcode – Enterprise App Update Distribution on iOS 8 – Stack Overflow
把地址改为:
window.location.href = ‘itms-services://?action=download-manifest&url=https://salesapp.qorosauto.com/ ios/manifest.plist?2022′; |
还是没用。
然后Xcode中-》Devices,找到设备,点击,看输入的log:
内容是:
Aug 10 20:25:02 Crifan-iPhone6 assertiond[67] <Error>: assertion failed: 13G35: assertiond + 30600 [0B862A7D-6E8B-3778-AD17-C7694ECD5BCD]: 0x16 Aug 10 20:25:02 Crifan-iPhone6 Unknown[67] <Error>: Aug 10 20:25:11 Crifan-iPhone6 installd[50] <Notice>: 0x16e087000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-4445804231739198374.app” type Placeholder (LSInstallType = 1) requested by itunesstored (pid 126) Aug 10 20:25:11 Crifan-iPhone6 installd[50] <Notice>: 0x16e087000 -[MIInstaller _extractPackageWithError:]: Incoming install at /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.HCqaR0/extracted/-4445804231739198374.app had class 3; changing to class 4 Aug 10 20:25:11 Crifan-iPhone6 installd[50] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.qorosauto.QorosSalesApp.1234; Version=0.9.0, ShortVersion=(null)> Aug 10 20:25:11 Crifan-iPhone6 installd[50] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.qorosauto.QorosSalesApp.1234 at /private/var/mobile/Containers/Data/Application/B7A22DE9-045E-473B-A738-93581A5EF026 Aug 10 20:25:11 Crifan-iPhone6 installd[50] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.qorosauto.QorosSalesApp.1234 at /private/var/containers/Bundle/Application/0F2B92AC-A734-4EB7-97B8-87330D12D65C Aug 10 20:25:11 Crifan-iPhone6 installd[50] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.00s; Overall: 0.10s Aug 10 20:25:14 Crifan-iPhone6 mstreamd[253] <Notice>: (Error) mmcs: mmcs_item_chunk_instance_was_unread:448 outstandingChunkReferencesPlaintextSize overflow averted Aug 10 20:25:15 Crifan-iPhone6 assertiond[67] <Error>: assertion failed: 13G35: assertiond + 30600 [0B862A7D-6E8B-3778-AD17-C7694ECD5BCD]: 0x16 Aug 10 20:25:15 Crifan-iPhone6 Unknown[67] <Error>: Aug 10 20:25:15 Crifan-iPhone6 searchd[130] <Warning>: ====^^^^ DuetExpert missing data, count -> people:1 applicationDeepLinks:0 applications:8 requests:3 missingAllDataRequests:0 Aug 10 20:25:15 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: keychain: -25300 Aug 10 20:25:15 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: status: off Aug 10 20:25:15 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: keychain: -25300 Aug 10 20:25:15 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: status: off Aug 10 20:25:15 Crifan-iPhone6 SpringBoard[58] <Warning>: HW kbd: Failed to set (null) as keyboard focus Aug 10 20:25:15 Crifan-iPhone6 MobileSafari[246] <Warning>: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. Aug 10 20:25:22 Crifan-iPhone6 assistant_service[184] <Warning>: Error getting NanoAppRegistry workspace info: Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.apple.nanoappregistry.workspace was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.apple.nanoappregistry.workspace was invalidated.} Aug 10 20:25:23 Crifan-iPhone6 assistant_service[184] <Warning>: Error getting NanoAppRegistry workspace info: Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.apple.nanoappregistry.workspace was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.apple.nanoappregistry.workspace was invalidated.} Aug 10 20:25:23 Crifan-iPhone6 calaccessd[182] <Warning>: ERROR: couldn’t find any operation group that responds to the selector CADDatabaseGetSharedCalendarInvitationsWithReply: Aug 10 20:25:23 Crifan-iPhone6 calaccessd[182] <Warning>: ERROR: couldn’t find any operation group that responds to the invocation CADDatabaseGetSharedCalendarInvitationsWithReply: Aug 10 20:25:23 Crifan-iPhone6 assistant_service[184] <Warning>: Error getting shared calendar invitations for entity types 2 from daemon: Error Domain=EKCADErrorDomain Code=1014 “(null)” |
参考:
又去试了还是不行:
Aug 10 20:32:35 Crifan-iPhone6 installd[50] <Notice>: 0x16e247000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/1675503806167040583.app” type Placeholder (LSInstallType = 1) requested by itunesstored (pid 126) Aug 10 20:32:35 Crifan-iPhone6 installd[50] <Notice>: 0x16e247000 -[MIInstaller _extractPackageWithError:]: Incoming install at /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.CUM6Zd/extracted/1675503806167040583.app had class 3; changing to class 4 Aug 10 20:32:35 Crifan-iPhone6 installd[50] <Notice>: 0x16e247000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.qorosauto.QorosSalesApp.1234; Version=0.9.0, ShortVersion=(null)> Aug 10 20:32:35 Crifan-iPhone6 installd[50] <Notice>: 0x16e247000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.qorosauto.QorosSalesApp.1234 at /private/var/mobile/Containers/Data/Application/0B900DE2-B5DF-4ADF-9CBB-9044B4DD2DB9 Aug 10 20:32:35 Crifan-iPhone6 installd[50] <Notice>: 0x16e247000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.qorosauto.QorosSalesApp.1234 at /private/var/containers/Bundle/Application/22F95E14-7C0E-41CC-B398-3EDDE6C581EF Aug 10 20:32:35 Crifan-iPhone6 installd[50] <Notice>: 0x16e247000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.12s Aug 10 20:32:41 Crifan-iPhone6 assertiond[67] <Error>: assertion failed: 13G35: assertiond + 30600 [0B862A7D-6E8B-3778-AD17-C7694ECD5BCD]: 0x16 Aug 10 20:32:41 Crifan-iPhone6 Unknown[67] <Error>: Aug 10 20:32:41 Crifan-iPhone6 searchd[130] <Warning>: ====^^^^ DuetExpert missing data, count -> people:1 applicationDeepLinks:0 applications:8 requests:5 missingAllDataRequests:0 Aug 10 20:32:41 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: keychain: -25300 Aug 10 20:32:41 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: status: off Aug 10 20:32:41 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: keychain: -25300 Aug 10 20:32:41 Crifan-iPhone6 MobileSafari[246] <Error>: KeychainGetICDPStatus: status: off Aug 10 20:32:41 Crifan-iPhone6 SpringBoard[58] <Warning>: HW kbd: Failed to set (null) as keyboard focus Aug 10 20:32:41 Crifan-iPhone6 MobileSafari[246] <Warning>: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. Aug 10 20:32:42 Crifan-iPhone6 nehelper[111] <Error>: Configuration for provider com.apple.NetworkExtension.NetworkServiceProxy does not exist (<__NSConcreteUUID 0x12de0c7c0> BF5C65A6-1102-4E65-BF2D-1E4D6D9F4BD5) or is not enabled (0) Aug 10 20:32:42 Crifan-iPhone6 nehelper[111] <Error>: Configuration for provider com.apple.NetworkExtension.NetworkServiceProxy does not exist (<__NSConcreteUUID 0x12de0c7c0> BF5C65A6-1102-4E65-BF2D-1E4D6D9F4BD5) or is not enabled (0) Aug 10 20:32:42 Crifan-iPhone6 nehelper[111] <Error>: Configuration for provider com.apple.NetworkExtension.NetworkServiceProxy does not exist (<__NSConcreteUUID 0x12de0c7c0> BF5C65A6-1102-4E65-BF2D-1E4D6D9F4BD5) or is not enabled (0) Aug 10 20:32:42 Crifan-iPhone6 UserEventAgent[26] <Error>: Report metrics message failed Aug 10 20:32:42 Crifan-iPhone6 UserEventAgent[26] <Error>: Probe message failed Aug 10 20:32:43 Crifan-iPhone6 nehelper[111] <Error>: Configuration for provider com.apple.NetworkExtension.NetworkServiceProxy does not exist (<__NSConcreteUUID 0x12de0c7c0> BF5C65A6-1102-4E65-BF2D-1E4D6D9F4BD5) or is not enabled (0) Aug 10 20:32:43 Crifan-iPhone6 nehelper[111] <Error>: Configuration for provider com.apple.NetworkExtension.NetworkServiceProxy does not exist (<__NSConcreteUUID 0x12de0c7c0> BF5C65A6-1102-4E65-BF2D-1E4D6D9F4BD5) or is not enabled (0) Aug 10 20:32:43 Crifan-iPhone6 UserEventAgent[26] <Error>: Report metrics message failed Aug 10 20:32:43 Crifan-iPhone6 UserEventAgent[26] <Error>: Probe message failed Aug 10 20:32:43 Crifan-iPhone6 apsd[98] <Warning>: Low Priority Push: com.evernote.iPhone.Evernote – App killed Aug 10 20:32:46 Crifan-iPhone6 assistant_service[184] <Warning>: Error getting NanoAppRegistry workspace info: Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.apple.nanoappregistry.workspace was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.apple.nanoappregistry.workspace was invalidated.} Aug 10 20:32:47 Crifan-iPhone6 assistant_service[184] <Warning>: Error getting NanoAppRegistry workspace info: Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.apple.nanoappregistry.workspace was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.apple.nanoappregistry.workspace was invalidated.} Aug 10 20:32:47 Crifan-iPhone6 calaccessd[182] <Warning>: ERROR: couldn’t find any operation group that responds to the selector CADDatabaseGetSharedCalendarInvitationsWithReply: Aug 10 20:32:47 Crifan-iPhone6 calaccessd[182] <Warning>: ERROR: couldn’t find any operation group that responds to the invocation CADDatabaseGetSharedCalendarInvitationsWithReply: Aug 10 20:32:47 Crifan-iPhone6 assistant_service[184] <Warning>: Error getting shared calendar invitations for entity types 2 from daemon: Error Domain=EKCADErrorDomain Code=1014 “(null)” |
把:
<key>bundle-identifier</key> <string>com.qorosauto.QorosSalesApp.1234</string> |
改回之前的:
<key>bundle-identifier</key> <string>com.qorosauto.QorosSalesApp</string> |
企业版 OTA 此时无法下载
企业版 此时无法下载
iOS 企业版应用 下载完成之后提示 无法下载应用程序,此时无法安装“e-roadWiFi” | iOS开发 – CocoaChina CocoaChina_让移动开发更简单
企业版 下载 此时无法下载应用 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单
关于ios企业版下载出现“此时无法安装应用程序”的解决办法 | 风之工房
发布企业版应用遇到“无法安装应用程序,证书无效”、“无法下载应用程序,此时无法安装” – 一滴清水 – 博客频道 – CSDN.NET
ios安装企业应用,提示”此时无法下载安装”BI””-CSDN论坛-CSDN.NET-中国最大的IT技术社区
IOS企业应用提示:无法下载应用程序,此时无法下载/安装 – 开源中国社区
ios enterprise distribution cannot download
ios enterprise OTA distribution cannot download
iOS Enterprise OTA distribution Unable to Download Application – Stack Overflow
“Unable to Download Application
“Your Application” could not be downloaded at this time.”
此处的:
<dict> <key>kind</key> <string>display-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/salesapp_512x512.png</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/salesapp_57x57.png</string> </dict> |
中的链接:
https://salesapp.qorosauto.com/logo/salesapp_512x512.png
https://salesapp.qorosauto.com/logo/salesapp_57x57.png
都是不存在的:
-》所以先去确保两个图片都是对应的尺寸,且的确放到了服务器的对应的位置了:
然后发现,此处服务器中,虽然是放了对应的图片的,但是文件大小写不对:
[[email protected] logo]$ ll total 36 -rwxrwxrwx. 1 useradmin useradmin 10474 Aug 10 09:05 SalesApp_180x180.png -rwxrwxrwx. 1 useradmin useradmin 19555 Jul 12 13:48 SalesApp_512x512.png -rwxrwxrwx. 1 useradmin useradmin 2537 Jul 12 13:48 SalesApp_57x57.png [[email protected] logo]$ pwd /usr/share/nginx/html/logo |
所以去确保大小也对的:
<dict> <key>kind</key> <string>display-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/SalesApp_512x512.png</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/SalesApp_57x57.png</string> </dict> |
https://salesapp.qorosauto.com/logo/SalesApp_512x512.png
https://salesapp.qorosauto.com/logo/SalesApp_57x57.png
确保图片是可以正常访问的:
最终可以正常下载了:
然后iPhone的桌面上,就出现了:
带图标的程序
显示:等待中。。。
然后就开始显示正常的加载进度了:
显示:正在载入。。。
然后就可以正常下载了:
显示:正在安装。。。
然后就可以正常的,进度超过了60%左右:
然后就安装成功了:
而显示出完整的图标了:
[总结]
此处,对于In House的企业版通过OTA(over-the-air)去发布在自己的https的网站上,但是下载却出错:
每次都是加载到一多半时就出现
无法下载应用 此时无法下载
的问题
最终找到了此处的根本原因:
是manifest.plist中所设置的图片文件名出错,导致找不到图片,导致无法继续正常安装
即:
manifest.plist
中配置了salesapp_512x512.png和salesapp_57x57.png:
<dict> <key>kind</key> <string>display-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/salesapp_512x512.png</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/salesapp_57x57.png</string> </dict> |
而实际上图片的名字,分别是:
SalesApp_512x512.png和SalesApp_57x57.png
-》
所以解决办法也就恨简单了:
把文件名改为正确的,此处所用的图片的名字:
<dict> <key>kind</key> <string>display-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/SalesApp_512x512.png</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>url</key> <string>https://salesapp.qorosauto.com/logo/SalesApp_57x57.png</string> </dict> |
即可,正常下载和安装:
且,在最开始的加载期间,和后来安装期间,都可以正常显示出图片的logo了
(而之前图片地址配置错误,是没发显示,不显示logo图片的)
转载请注明:在路上 » [已解决]企业版的iOS的app去In House打包和OTA发布后有时候无法下载和安装:无法下载应用 此时无法下载 完成 重试