Scanning an IBM MobileFirst Platform project

IBM® MobileFirst Platform projects are scanned in the same manner as other project types, however, some considerations need to be taken into account. This help topic describes these considerations.

If you are scanning an IBM MobileFirst Platform project that contains files that have been modified, you must rebuild the project using IBM MobileFirst Platform before scanning. If you do not rebuild the project using IBM MobileFirst Platform, modifications made to files will be ignored by AppScan® Source.

You can launch a scan for an IBM MobileFirst Platform project by following the instructions in Scanning - or you can right-click at a project level, application level, environment (android, ipad, or iphone) level, the common folder below an application environment, HTML file level, or Xcode project level (on macOS only) and then select Run Scan from the menu.

  • If your scan includes the android environment, you must first use IBM MobileFirst Platform to build the project.
  • To be able to scan Android code in your IBM MobileFirst Platform projects, you must use the Android Developer Tools (ADT) Eclipse plug-in for Android application development.
  • In order to scan Xcode projects that have dependencies, the project must be built a single time in Xcode in order to create the dependencies needed by the AppScan Source scanner. For example, if you have an IBM MobileFirst Platform-generated Xcode project, in order to scan the iPhone or iPad environment, or any Xcode project beneath one of those environments, you must build the project for the iOS device in Xcode. This can be accomplished from the command line by executing:

    xcodebuild -project <project_dir_name>.xcodeproj -configuration Release

    Where <project_dir_name> is the Xcode project path and filename.

    If the Xcode project has not been built first, the following types of errors may appear during a scan:

    01/11/14 07:33:03 - Scanning /Users/smith/MobileFirst_Apps/
      wl_newapps/BasicHybridApp/apps/HybridApp/iphone/native/
      Classes/CDVMainViewController.m (1 of 3)
    01/11/14 07:33:05 - In file included from /Users/smith/MobileFirst_Apps/
      wl_newapps/BasicHybridApp/apps/HybridApp/iphone/native/Classes/
      CDVMainViewController.m:14:
    In file included from /Users/smith/MobileFirst_Apps/wl_newapps/
      BasicHybridApp/apps/HybridApp/iphone/native/Classes/
      CDVMainViewController.h:15:
     /Users/smith/MobileFirst_Apps/wl_newapps/BasicHybridApp/apps/HybridApp/
      iphone/native/MobileFirstSDK/include/MainViewController.h:35:9: 
      fatal error: 'Cordova/CDVViewController.h' file not found
    #import <Cordova/CDVViewController.h>

    or

    2/06/14 15:19:43 - Scanning /Users/smith/MobileFirst_Apps/
      xcodeapps/WLMarkupTest-1.0-iphone/Classes/
      CDVMainViewController.m (1 of 3)
    02/06/14 15:19:45 - In file included from /Users/smith/MobileFirst_Apps/
      xcodeapps/WLMarkupTest-1.0-iphone/Classes/CDVMainViewController.m:14:
    In file included from /Users/smith/MobileFirst_Apps/xcodeapps/
      WLMarkupTest-1.0-iphone/Classes/CDVMainViewController.h:15:
    /Users/smith/MobileFirst_Apps/xcodeapps/WLMarkupTest-1.0-iphone/
      MobileFirstSDK/include/MainViewController.h:41:63: error: expected ':'
    - (BOOL) execute:(CDVInvokedUrlCommand*)command CDV_DEPRECATED
      (2.2, "Use direct method calls instead, this is now a no-op");
Note: When scanning an IBM MobileFirst Platform Version 6.1 project, you may notice an extensive delay before the scan begins. For more information, contact HCL Support regarding delays while scanning Worklight 6.1 applications using AppScan Source for Development Eclipse plug-in.