Search code examples
ibm-mobilefirstcordova-plugins

IBM Mobile Quality Assurance: unrecognized selector sent to instance


I have followed this tutorial: https://mobilefirstplatform.ibmcloud.com/tutorials/en/quality-assurance/8.0/cordova/

If I run the app, it throws the following error:

2016-06-30 11:51:29.181 HelloWorld[8767:236400] -[MQACordovaPlugin initWithWebViewEngine:]: unrecognized selector sent to instance 0x7ff8d5a21ad0

2016-06-30 11:51:29.182 HelloWorld[8767:236400] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: -[MQACordovaPlugin initWithWebViewEngine:]: unrecognized selector sent to instance 0x7ff8d5a21ad0

Here is the history of my terminal:

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 [email protected]
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

Building in xcode works fine and the app is starting, but MQA is not working. Seems to be something wrong in my environment. This is my cordova version:

Sebastians-MBP:hello:$ cordova -version
6.2.0

I've also uploaded the project here (removed my app key, but still the same result in xcode).


Solution

  • Remove your iOS platform and change your iOS runtime to 3.7.

    cordova platform rm ios
    cordova platform add [email protected]