Xcode使用什么“内置副本”?

Ben*_*ynn 5 xcode ios 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
Run Code Online (Sandbox Code Playgroud)

builtin-copyXcode内部有东西吗?我问是因为如果我将路径设置为Xcode设置的路径,那么我没有可用的内置复制命令。似乎很方便。我希望将自己的资源复制到Shell脚本中,因此我在Xcode阶段进行参考。

Ben*_*ynn 3

将我的评论移至答案。似乎 CpResource 做同样的事情:

\n\n
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\xe2\x80\x8c\xe2\x80\x8bmgbzzxtztbku/Build/Products/Debug-iphoneos/MyApp.app\n
Run Code Online (Sandbox Code Playgroud)\n

  • 如果 Rsync 绝对没有像“-bitcode-strip”或“-strip-debug-symbols”这样的选项,我不明白这是怎么回事。 (3认同)