IBM Worklight - AppCenter app缺少插件'com.ibm.mobile.InstallerPlugin' [英] IBM Worklight - AppCenter app missing Plugin 'com.ibm.mobile.InstallerPlugin'

查看:133
本文介绍了IBM Worklight - AppCenter app缺少插件'com.ibm.mobile.InstallerPlugin'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用同样的问题作为这个用户。我使用eclipse(AppCenter - > Run As - > Build All Environments)在xcode(iphone - > Run As - > Xcode项目)中打开了IBM Worklight AppCenter客户端应用程序,并通过xcode在iphone仿真器中运行应用程序。

I'm having the same problem as this user. I've built the IBM Worklight AppCenter client application using eclipse (AppCenter -> Run As -> Build All Environments) opened it in xcode (iphone -> Run As -> Xcode project) and run the app in the iphone emulator via xcode.

在应用程序(用户名,密码,服务器,端口,上下文)中输入Worklight服务器凭据后,将显示正在加载消息,并且应用程序将停止运行。

After I enter my Worklight server credentials in the app (username, password, server, port, context) a "Loading" message is displayed and the app ceases functioning.

我通过应用程序的javascript进行了调试,并将问题追溯到试图执行对Cordova原生插件的调用的应用程序:

I've debugged through the app's javascript and traced the problem to the app trying to execute a call to a Cordova native plugin:

cordova.exec(pSuccessCallback,                      // Success callback from the plugin
                     function(e){     
                        console.log("Error connecting to server [code, msg, status] = " 
                                + e.errorCode + ", "
                                + e.errorMsg + ", "
                                + e.httpCode);

                        pFailureCallback(e);
                     },                              
                     'com.ibm.mobile.InstallerPlugin',      // Tell cordova to run "com.ibm.mobile.InstallerPlugin" Plugin
                     'updateConnection',                    // Tell plugin, which action we want to perform
                     [pUsername, pPassword, pServerURL]);   // Passing list of args to the plugin         

此错误消息显示在xcode中:IBMAppCenter [2315: 70b]错误:方法'updateConnection:'未在插件中定义'com.ibm.mobile.InstallerPlugin'

This error message is displayed in xcode: IBMAppCenter[2315:70b] ERROR: Method 'updateConnection:' not defined in Plugin 'com.ibm.mobile.InstallerPlugin'

实现此插件的本机库位于预期位置但不要应用程序似乎看不到 - IBMAppCenter / apps / AppCenter / iphone / native / appCenterLib:

The native libraries implementing this plugin are in their expected locations but don't appear to seen by the application - IBMAppCenter/apps/AppCenter/iphone/native/appCenterLib:


  • Debug-iphoneos / libAppCenterInstallerLib.a

  • Release-iphoneos / libAppCenterInstallerLib.a

  • Debug-iphonesimulator / libAppCenterInstallerLib.a

  • Release-iphonesimulator /libAppCenterInstallerLib.a

  • Debug-iphoneos/libAppCenterInstallerLib.a
  • Release-iphoneos/libAppCenterInstallerLib.a
  • Debug-iphonesimulator/libAppCenterInstallerLib.a
  • Release-iphonesimulator/libAppCenterInstallerLib.a

在应用程序中包含本机库是否还需要其他步骤?

Are there any additional steps required to include the native libraries in the application?

非常感谢任何帮助。

推荐答案

方法updateConnection在InstallerPlugin中定义。我认为这只是调用InstallerPlugin的第一种方法,因此问题可能是您不小心删除了安装程序插件。

The method "updateConnection" is defined in the InstallerPlugin. I think it is simply the first method to be called of the InstallerPlugin, hence the problem might be that you accidentally removed the installer plugin.

目录IBMAppCenter / apps / AppCenter / iphone / native / appCenterLib必须包含不同版本的libAppCenterInstallerLib.a:

The directory IBMAppCenter/apps/AppCenter/iphone/native/appCenterLib must contain the different versions of libAppCenterInstallerLib.a:


  • Debug-iphoneos / libAppCenterInstallerLib.a

  • Release-iphoneos / libAppCenterInstallerLib.a

  • Debug-iphonesimulator / libAppCenterInstallerLib.a

  • Release-iphonesimulator / libAppCenterInstallerLib.a

  • Debug-iphoneos/libAppCenterInstallerLib.a
  • Release-iphoneos/libAppCenterInstallerLib.a
  • Debug-iphonesimulator/libAppCenterInstallerLib.a
  • Release-iphonesimulator/libAppCenterInstallerLib.a

方法updateConnection包含在libAppCenterInstallerLib.a中。

The method updateConnection is contained in libAppCenterInstallerLib.a.

如果这些库缺少,您可以从IBM Worklight的原始安装目录中复制它们。

If those libs are missing, you can copy them from the original installation directory of IBM Worklight.

在重新生成iphone或Android环境之前,请永远不要删除IBMAppCenter / apps / AppCenter的本机目录。如果删除本机目录,则删除这些必需的库,然后AppCenter客户端不起作用。

Please never delete the native directories of IBMAppCenter/apps/AppCenter before regenerating the iphone or Android environment. If you delete the native directories, you delete those required libraries, and then the AppCenter client is not functional.

这篇关于IBM Worklight - AppCenter app缺少插件'com.ibm.mobile.InstallerPlugin'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆