【发布时间】:2014-03-18 09:32:35
【问题描述】:
我从 HTTP 服务器分发我的 iOS 应用程序作为企业分发。当用户直接从网络浏览器下载应用程序时,应用程序安装正确,不会出现错误。
另一方面,应用程序有一个自动更新的过程。当用户启动应用程序时,如果服务器上有新版本的应用程序,则会显示开始下载的警报。如果用户接受,则开始下载。在安装过程中,显示以下消息:
“无法下载应用程序”但应用程序已正确安装。我使用此代码下载应用程序:
NSURL *url = [NSURL URLWithString:serverUrlDownload];
[[UIApplication sharedApplication] openURL:url];
当用户使用 iPhone 5s 时会发生这种情况。
在日志中显示以下错误:
<Warning>: Download url: itms-services://?action=download-manifest&url=http://server_update/ios/IOS_WF.plist
<Warning>: LaunchServices: installing placeholder for app10.IOS-WF
<Notice>: 0x1005a4000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-6609911948116439539.app" requested by itunesstored
<Notice>: 0x1005a4000 MobileInstallationInstall_Server: Installing app app10.IOS-WF
<Notice>: 0x1005a4000 install_application: Installing parallel placeholder
<Notice>: 0x1005a4000 MobileInstallationInstall_Server: Staging: 0.00s; Waiting: 0.00s; Installation: 0.12s; LS Sync: 0.00s; Overall: 0.12s
<Warning>: No se ha obtenido ningún flujo
<Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: app10.IOS-WF (Placeholder) withPhase:0
<Warning>: LaunchServices: installation failed for app app10.IOS-WF
<Warning>: LaunchServices: installPhaseFinishedForProgress: app10.IOS-WF.Loading - <NSProgress: phase=Loading; state=Failed; fractionCompleted=1.000000> called, removing progress from cache
重现 iPhone 5s 中的问题。
我无法在 iPhone 4s 中重现错误。
有什么想法吗?可能是服务器配置的问题?
【问题讨论】:
-
同样未回答的问题here
标签: ios iphone objective-c xcode ipad