Xcode使用的“内置复制”是什么/在哪里?

时间:2013-11-13 18:20:20

标签: ios xcode xcode5

如果我从一个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是内部的builtin-copy吗?我问,因为如果我设置Xcode设置它的路径,我没有可用的内置复制命令。这看起来很方便。我想在shell脚本中复制我自己的资源,所以我正在查看Xcode阶段以供参考。

1 个答案:

答案 0 :(得分:3)

将我的评论移至答案。看起来像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