Cannot build project for iOS/Android from Cordova cli; "mv: dest file already exists"

Android, Apple, Cordova, iOS, 2016-01-28 08:28:18 UTC

Today I have a problem with Cordova again. The problem is I can't compile my appication with Xcode, Android Studio and Cordova commandline.

When I run command;

MacBook-Pro:Bolang zorro$ cordova build ios
mv: dest file already exists: /Users/zorro/Documents/Proyek/mobile_apps/Bolang/platforms/ios/Ganteng/GANTENG-Info.plist
 
mv: dest file already exists: /Users/zorro/Documents/Proyek/mobile_apps/Bolang/platforms/ios/Ganteng/GANTENG-Prefix.pch
 
shell.js: internal error
Error: EINVAL, invalid argument '/Users/zorro/Documents/Proyek/mobile_apps/Bolang/platforms/ios/Ganteng.xcodeproj'
    at Error (native)
    at Object.fs.renameSync (fs.js:636:18)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:77:8
    at Array.forEach (native)
    at Object._mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:53:11)
    at Object.mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/common.js:186:23)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:222:15
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)

 

After looking for solution for 3 hour by trial and error, I remember that I renamed my applcation name in config.xml. Capitalize all of the words from Ganteng to GANTENG.

Yeah... that was a problem!

Renamed to Ganteng again, and... IT WORKS! Pufh... 

 


Share: