English 中文(简体)
Xcode - Building phase orscript for拷贝 only amended file to App Bundle
原标题:Xcode - build phase or script for copying only modified files to App Bundle

要求Mac OS X10.5兼容。 Xcode 3.2.5.

我看一看“数据”的夹子。

“数据”包含分数和数据的等级。 内容不断修改。

我无需在Xcode中浏览或修改这一数据。

<> 在建设时,我如何将“数据”(例如,Xcode项目夹)复制到资源夹,但只能将自最后建筑以来经过修改的“数据”中的这些档案复制?

(在我建造时每只复制所有档案是不可能的;档案尺寸太大,缩短了建筑时间)

感谢任何帮助。

最佳回答

Shouldn t be a problem to use rsync in a shell script build phase. Something like this:

rsync -a "${SRCROOT}/data" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"

这比日期多一点,但还是比你现在更快一点。

以上并没有删除从来源目录中删除的任何文件;为了这样做,你可以添加<代码>-delete,但我只建议这样做。

问题回答

暂无回答




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签