Error loading DVTFoundation.framework in cordova build ios

cordova build ios fails with this error message:
Error: dyld: Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation
Referenced from: /Developer/usr/bin/xcodebuild
Reason: no suitable image found. Did find: /Developer/usr/bin/…/…/Library/PrivateFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation: cannot load ‘/Developer/usr/bin/…/…/Library/PrivateFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation’ because Objective-C garbage collection is not supported

I get the exact same error with: npm install -g ios-deploy