IBM Mobile Quality Assurance:发送到实例的无法识别的选择器

时间:2016-06-30 10:11:50

标签: ibm-mobilefirst cordova-plugins

我已按照本教程:https://mobilefirstplatform.ibmcloud.com/tutorials/en/quality-assurance/8.0/cordova/

如果我运行该应用程序,则会引发以下错误:

  

2016-06-30 11:51:29.181 HelloWorld [8767:236400] - [MQACordovaPlugin initWithWebViewEngine:]:无法识别的选择器发送到实例0x7ff8d5a21ad0

     

2016-06-30 11:51:29.182 HelloWorld [8767:236400] *** WebKit在webView中丢弃了一个未捕获的异常:decisionPolicyForNavigationAction:request:frame:decisionListener:delegate: - [MQACordovaPlugin initWithWebViewEngine:]:无法识别的选择器发送到实例0x7ff8d5a21ad0

以下是我的航站楼的历史:

Cookie c = new Cookie("name", "", 0, somepath, somedomain, false, false);
return ok().withCookies(c);

在xcode中构建工作正常,应用程序正在启动,但MQA无法正常工作。 在我的环境中似乎有些不对劲。这是我的cordova版本:

Sebastians-MBP:mqatest:$ cordova create hello com.example.hello  HelloWorld
Creating a new cordova project.
Sebastians-MBP:mqatest:$ cd hello/
Sebastians-MBP:hello:$ cordova platform add ios
Adding ios project...
iOS project created with cordova-ios@4.1.1
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for ios
Sebastians-MBP:hello:$ cordova plugin add /Users/Sebastian/temp/CordovaPlugin-3.0.18
Installing "com.ibm.mqa" for ios
Sebastians-MBP:hello:$ cordova plugin add cordova-plugin-device
Fetching plugin "cordova-plugin-device" via npm
Installing "cordova-plugin-device" for ios
Sebastians-MBP:hello:$ cordova plugin list
com.ibm.mqa 3.0.18 "IBM MobileFirst Quality Assurance"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-whitelist 1.2.2 "Whitelist"
Sebastians-MBP:hello:$ cordova build

我还上传了项目here(删除了我的应用密钥,但在xcode中仍然是相同的结果)。

1 个答案:

答案 0 :(得分:0)

删除iOS平台并将iOS运行时更改为3.7。

cordova platform rm ios
cordova platform add ios@3.7