Search code examples
ibm-mobilefirstworklight-mtww

IBM Worklight 6.0 - Mobile Test Workbench - Instrumentalized iOS App Error


I’ve got a problem with my instrumentalized iOS App for the Mobile Test Workbench iOS-Client. After adding the necessary environments (IPhone and Android) and building the app with worklight, I wanted to test my app with the Mobile Test Workbench. The instrumentalization with rtwBuildXcode.sh succeeded and the app was uploaded to the simulator (with the script-parameter simu). But when the script uploads the app to the local mobile test workbench instance there is the following error:

WorkbenchTest: this application is not a supported WorkLight one. Please consider using IBM Rational Test Workbench.

I’m confused! It’s a Worklight app and the android-test-environment runs well but the ios one doesn’t at all. The only thing I change in the Xcode-Project was the “Bundle Identifier” so I could build the app with the script. The original-app runs on Android and iOS-Simulator! Could somebody help me pls? Thx!

I’m using Worklight 6.0 and Mobile Test Workbench 8.5


Solution

  • The issuse is exactly what you said you did, you changed in the Xcode-Project was the "Bundle Identifier"

    You should not do that with a worklight app, you need to change in the application-descriptor.xml

    change the "bundleId" in the iphone section to fit what you need.

     <iphone bundleId="com.yourbundleid" version="1.0">
            <worklightSettings include="true"/>
            <security>
                <encryptWebResources enabled="false"/>
                <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
            </security>
        </iphone>
    

    The underline reason (if not interested please skip) is that the script uses the "budnle id", and when you change it ONLY in the native project (in XCode), it does NOT know what you did, and fails.

    hope this helps