Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm mobilefirst IBM Worklight 6.1-iOS上的直接更新失败,更新失败-处理应用程序更新文件失败_Ibm Mobilefirst - Fatal编程技术网

Ibm mobilefirst IBM Worklight 6.1-iOS上的直接更新失败,更新失败-处理应用程序更新文件失败

Ibm mobilefirst IBM Worklight 6.1-iOS上的直接更新失败,更新失败-处理应用程序更新文件失败,ibm-mobilefirst,Ibm Mobilefirst,对于iOS设备,会触发直接更新流,但在解压缩更新存档时失败。 请注意,对于Android设备,该过程工作正常,更新被成功推送到客户端应用程序 当初始安装的.ipa生成的内容与新上载的.wlappp到AppCenter的内容之间的校验和不同时,将正确触发直接更新提示。 AppCenter服务器和WL客户端日志都显示连接正常,包下载成功 解压更新的资源包时,进程失败,并记录错误:更新应用程序时发生致命错误。无法打开下载的zip文件。下附 我们尝试了两种选择,结果都是一样的 在initOptions.

对于iOS设备,会触发直接更新流,但在解压缩更新存档时失败。 请注意,对于Android设备,该过程工作正常,更新被成功推送到客户端应用程序

当初始安装的.ipa生成的内容与新上载的.wlappp到AppCenter的内容之间的校验和不同时,将正确触发直接更新提示。 AppCenter服务器和WL客户端日志都显示连接正常,包下载成功

解压更新的资源包时,进程失败,并记录错误:更新应用程序时发生致命错误。无法打开下载的zip文件。下附

我们尝试了两种选择,结果都是一样的

在initOptions.js中启用标志 触发wlCommonInit中的连接

iOS日志:


确保您已将服务器和Studio安装更新至最新的6.1.0.02 iFix版本,因为相关的直接更新修复已完成。iFix可从以下网址获得:


如果它对您不起作用,仍然可以使用更新的日志更新问题。

我在使用windows机器构建iOS混合文件时遇到了这个问题。 当我使用Mac机器构建时,问题就解决了。 尝试为iOS重建.wlapp文件,并将其重新部署到WL控制台,然后再次测试直接更新


希望能有所帮助。

Dannyss,最新的6.1.0.2 iFix是否仍存在此问题?
connectOnStartup : true,      
onConnectionFailure: function (){alert("Worklight server connection failed. Direct Update is not possible.");wlCommonInit();},
WL.Client.connect({
    onSuccess: function(){WL.Logger.error("OK");},
    onFailure: function(){WL.Logger.error("FAIL");}
});
2014-08-09 10:25:28.974 SMC[1500:60b] [INFO] [wl.client] WL.Client.connect onConnectSuccess ENTERING
2014-08-09 10:25:28.981 SMC[1500:60b] [DEBUG] [NONE] wlclient connect success
2014-08-09 10:25:29.096 SMC[1500:60b] THREAD WARNING: ['Notification'] took '107.535889' ms. Plugin should use a background thread.
2014-08-09 10:26:19.976 SMC[1500:60b] [ERROR] [NONE] Update checksum is 3782542690
2014-08-09 10:26:19.988 SMC[1500:60b] THREAD WARNING: ['NetworkDetector'] took '13.082031' ms. Plugin should use a background thread.
2014-08-09 10:26:19.990 SMC[1500:60b] [ERROR] [NONE] In Progress checksum is 3782542690
2014-08-09 10:26:20.002 SMC[1500:60b] THREAD WARNING: ['NetworkDetector'] took '11.927979' ms. Plugin should use a background thread.
2014-08-09 10:26:20.004 SMC[1500:60b] [DEBUG] [NONE] Request [https://{appceneter_hostname}:443/worklight/apps/services/api/SMC/iphone/setup]
2014-08-09 10:26:20.014 SMC[1500:60b] THREAD WARNING: ['NetworkDetector'] took '10.286133' ms. Plugin should use a background thread.
2014-08-09 10:26:20.041 SMC[1500:60b] Requesting bytes starting from 0
2014-08-09 10:26:20.042 SMC[1500:60b] THREAD WARNING: ['WebResourcesDownloader'] took '25.979004' ms. Plugin should use a background thread.
2014-08-09 10:26:20.106 SMC[1500:60b] Start downloading update file.
2014-08-09 10:26:20.110 SMC[1500:60b] Temp update file is /var/mobile/Applications/2DEEED98-E567-4ABB-AD41-BE74EF28A014/Library/tempUpdateFile
2014-08-09 10:26:20.116 SMC[1500:60b] Length of updateFileBase64String before appending 0 
2014-08-09 10:26:20.118 SMC[1500:60b] Length of updateFileBase64String after appending 0 
2014-08-09 10:26:20.247 SMC[1500:60b] Temp update file is /var/mobile/Applications/2DEEED98-E567-4ABB-AD41-BE74EF28A014/Library/tempUpdateFile
2014-08-09 10:26:20.279 SMC[1500:60b] Length of updateFileBase64String before appending 0 
2014-08-09 10:26:20.281 SMC[1500:60b] Length of updateFileBase64String after appending 0 
2014-08-09 10:26:20.316 SMC[1500:60b] [DEBUG] [NONE] response [https://{appcenter_hostname}:443/worklight/apps/services/api/SMC/iphone/setup] success: 
2014-08-09 10:26:20.326 SMC[1500:60b] THREAD WARNING: ['NetworkDetector'] took '10.586914' ms. Plugin should use a background thread.
2014-08-09 10:26:20.328 SMC[1500:60b] [DEBUG] [NONE] defaultOptions:onSuccess
2014-08-09 10:26:20.339 SMC[1500:60b] THREAD WARNING: ['NetworkDetector'] took '11.760010' ms. Plugin should use a background thread.
2014-08-09 10:26:20.386 SMC[1500:60b] Temp update file is /var/mobile/Applications/2DEEED98-E567-4ABB-AD41-BE74EF28A014/Library/tempUpdateFile
2014-08-09 10:26:20.391 SMC[1500:60b] Length of updateFileBase64String before appending 0 
2014-08-09 10:26:20.392 SMC[1500:60b] Length of updateFileBase64String after appending 0 
2014-08-09 10:26:20.496 SMC[1500:60b] Temp update file is /var/mobile/Applications/2DEEED98-E567-4ABB-AD41-BE74EF28A014/Library/tempUpdateFile
2014-08-09 10:26:20.501 SMC[1500:60b] Length of updateFileBase64String before appending 0 
2014-08-09 10:26:20.502 SMC[1500:60b] Length of updateFileBase64String after appending 0 
2014-08-09 10:26:20.544 SMC[1500:60b] Finished downloading.
2014-08-09 10:26:20.545 SMC[1500:60b] Deleting file
2014-08-09 10:26:20.547 SMC[1500:60b] File deleted
2014-08-09 10:26:20.548 SMC[1500:60b] webViewDidFinishLoad: Length of updateFileBase64String before appending 0 
2014-08-09 10:26:20.550 SMC[1500:60b] webViewDidFinishLoad: Length of updateFileBase64String after appending 0 
2014-08-09 10:26:20.551 SMC[1500:60b] Setting progress
2014-08-09 10:26:20.553 SMC[1500:60b] Starting to unpack
2014-08-09 10:26:20.556 SMC[1500:60b] Decoding base 64
2014-08-09 10:26:20.558 SMC[1500:60b] Unzipping
2014-08-09 10:26:20.562 SMC[1500:60b] Zip file created
2014-08-09 10:26:20.570 SMC[1500:60b] Fatal error updating application. Can't open downloaded zip file.
2014-08-09 10:26:20.572 SMC[1500:60b] Warning: Attempt to dismiss from view controller <CDVMainViewController: 0x15630070> while a presentation or dismiss is in progress!
2014-08-09 10:26:20.586 SMC[1500:60b] Releasing downloadUpdateFileUiWebView
2014-08-09 10:26:20.631 SMC[1500:60b] THREAD WARNING: ['Notification'] took '39.161133' ms. Plugin should use a background thread.
2014-08-09 10:26:20.636 SMC[1500:60b] Temp update file is /var/mobile/Applications/2DEEED98-E567-4ABB-AD41-BE74EF28A014/Library/tempUpdateFile
2014-08-09 10:26:21.236 SMC[1500:60b] Unbalanced calls to begin/end appearance transitions for <CDVMainViewController: 0x15630070>.