Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What / where is "builtin-copy" that Xcode is using?

Tags:

xcode

ios

xcode5

If I look at the details from a build of an iOS app, in the copy resources phase, I see Xcode claim to be using something called "builtin-copy":

CpResource /svn/MyProject/MyResources/myLog.json /Users/benjamin.flynn/Library/Developer/Xcode/DerivedData/MyApp-gocyhvchxrohmbbgmgbzzxtztbku/Build/Products/Debug-iphoneos/MyApp.app/myLog.json
cd "/svn/MyProject/MyApp"
setenv PATH "/Applications/Xcode-5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-5.0.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /svn/MyProject/MyResources/myLog.json /Users/benjamin.flynn/Library/Developer/Xcode/DerivedData/MyApp-gocyhvchxrohmbbgmgbzzxtztbku/Build/Products/Debug-iphoneos/MyApp.app

Is builtin-copy something internal to Xcode? I ask because if I set my path to what Xcode is setting it to, I do not have a builtin-copy command available. It seems handy. I'm looking to copy my own resource in a shell script so I was looking at the Xcode phase for reference.

like image 248
Ben Flynn Avatar asked Nov 13 '13 18:11

Ben Flynn


1 Answers

Moving my comment to an answer. Seems like CpResource does the same thing as:

rsync -r --exclude .DS_Store -exclude CVS --exclude .svn --exclude .git --exclude .hg --copy-links /svn/MyProject/MyResources/myLog.json /Users/benjamin.flynn/Library/Developer/Xcode/DerivedData/MyApp-gocyhvchxrohmbbg‌​mgbzzxtztbku/Build/Products/Debug-iphoneos/MyApp.app
like image 121
Ben Flynn Avatar answered Oct 15 '22 19:10

Ben Flynn