ios – Xcode使用的“内置复制”是什么/何处?

如果我从一个iOS应用程序的构建中查看详细信息,在复制资源阶段,我看到
Xcode声称使用了一个名为“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

是否内置了Xcode内部的东西?我问,因为如果我设置Xcode设置它的路径,我没有可用的内置复制命令.这看起来很方便.我想在shell脚本中复制我自己的资源,所以我正在查看Xcode阶段以供参考.

最佳答案 将我的评论转移到答案.看起来像CpResource做同样的事情:

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
点赞