   ]
 
   grunt.registerTask 'build_ios', [
-    'exec:rmIosBuild'
+    'exec:cleanIos'
     'build_cca'
     'exec:ccaCreateIosDev'
     'exec:ccaAddPluginsIosBuild'

        cwd: '<%= iosDistPath %>'
        command: '<%= ccaJsPath %> prepare'
      }
      rmIosBuild: {
        command: 'rm -rf <%= iosDevPath %>; rm -rf <%= iosDistPath %>'
      }
      androidReplaceXwalkDev: {

  ]

  # Builds all code, including the "dist" build, but skips
  # iOS and Android as well as
  # ts-linting and testing which can be annoying and slow.
  # jshint is here because catches hard syntax errors, etc.
  grunt.registerTask 'build', [
    'build_chrome'
    'build_firefox'
    'build_cca'
