Xcode - build phase or script for copying only modified files to App Bundle

橙三吉。 提交于 2019-12-09 00:42:34

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}"

That does a bit more than date comparison but it should still be quite a bit faster than what you're doing now.

The above doesn't delete any files you removed from the source directory; to do so, you can add --delete but I'd only suggest doing that after you're sure it's working properly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!