tcurdt / iProxy

Let's you connect your laptop to the iPhone to surf the web.
http://github.com/tcurdt/iProxy
Apache License 2.0
1.2k stars 203 forks source link

ditto fails on Leopard #3

Closed austincraig closed 14 years ago

austincraig commented 14 years ago

might be user error but i'm still unable to compile. here's the error:

Project iProxy | Configuration Release !Run custom shell script 'Run Script'

ditto: Can't archive multiple sources Usage: ditto [ ] src [ ... src ] dst !Command /bin/sh failed with exit code 1

austincraig commented 14 years ago

and i confirmed my project.pbxproj is using the absolute path:

$TARGET_BUILD_DIR\nfi\n\n/usr/bin/ditto

tcurdt commented 14 years ago

Odd. Did "ditto" options change between Leopard and Snow Leopard? Please attach the output of "ditto -h". Will try to get hold of a Leopard machine myself to reproduce.

austincraig commented 14 years ago

I'm running SL 10.6.2 w/ xcode 3.2.1:

Usage: ditto [ ] src [ ... src ] dst

<options> are any of:
-h              print full usage
-v              print a line of status for each source copied
-V              print a line of status for every file copied
-X              do not descend into directories with a different device ID

-c              create an archive at dst (by default CPIO format)
-x              src(s) are archives
-z              gzip compress CPIO archive
-j              bzip2 compress CPIO archive
-k              archives are PKZip
--keepParent    parent directory name src is embedded in dst_archive
--arch archVal  fat files will be thinned to archVal
                multiple -arch options can be specified
                archVal should be one of "ppc", "i386", etc
--bom bomFile   only objects present in bomFile are copied
--norsrc        don't preserve resource data
--noextattr     don't preserve extended attributes
--noqtn         don't preserve quarantine information
--noacl         don't preserve ACLs
--sequesterRsrc copy resources via polite directory (PKZip only)
--nocache       don't use filesystem cache for reads/writes
tcurdt commented 14 years ago

It was actually a quoting problem. Didn't work if the path had spaces in it. Fixed!