   ]
 
   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: {


  # Mobile OS build tasks
  grunt.registerTask 'build_android', [
    'exec:cleanAndroid'
    'build_cca'
    'exec:ccaCreateDev'
    'exec:ccaPlatformAndroidDev'
