Today, I noticed that Cordova is on Release 3.6. This is sort of strange as just a few days ago I updated from 3.4.X to 3.5.X. I'm surprised it didn't update me to 3.6.
In any case, after updating Cordova, I updated the Kids In Touch project with :
cordova platform update ios
Then, I ran cordova build ios
and everything went to pot.
ova.console/CDVLogger.m -o /Users/jn/Documents/Apps/kidsintouch-2/platforms/ios/build/Kids\ In\ Touch.build/Debug-iphonesimulator/Kids\ In\ Touch.build/Objects-normal/i386/CDVLogger.o
** BUILD FAILED **
The following build commands failed:
CompileC build/Kids\ In\ Touch.build/Debug-iphonesimulator/Kids\ In\ Touch.build/Objects-normal/i386/MainViewController.o Kids\ In\ Touch/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/jn/Documents/Apps/kidsintouch-2/platforms/ios/cordova/build: Command failed with exit code 65
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
jn-mbp:kidsintouch-2 jn$ ls -la
Uh oh. I didn't see any easy fixes when searching, so I did a Hail Mary pass.
cordova platform remove ios
cordova platform add ios
cordova platform build ios
And Hey Presto, all is good again. I'm not sure if/why this was necessary, but it certainly solved my Cordova/Phonegap upgrade problem. Hopefully this will help someone else out too.