PhoneGap 2.0 and Mountain Lion don’t get along too well when it comes to creating new iOS projects. If you’re getting the following (or similar errors):
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
If you’re interested in the problem:
The script has multiple points of failure if there are spaces anywhere in either the path to the extracted bin dir, or the path to the target. It seems that there is insufficient argument escaping when passing the derived variables, like $R, on to other scripts and program
I’m unsure why the official download doesn’t contain this fix.