为什么Xcode在构建到设备时会复制未更改的资源? [英] Why does Xcode copy unchanged resources when building to a device?

查看:59
本文介绍了为什么Xcode在构建到设备时会复制未更改的资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个相当大的,资产大量的iOS项目,我不禁注意到Xcode复制了数百个根本没有改变的资源(纹理,spritesheet,声音文件等)。自从我上次构建设备以来。当每次构建需要2-4分钟才能在设备上弹出时,它会使编码真的非常慢。

I'm working with a rather large, asset-heavy project for iOS and I can't help but notice Xcode copying hundreds of resources (textures, spritesheets, sound files, etc..) that haven't changed at all since the last time I built to the device. It makes coding really, really slow when each build takes 2-4 minutes to pop up on the device.

是否有一种方法可以让Xcode识别出它在做多余的事情东西或编写脚本,使其对如何将资源转移到设备上更加智能?

Is there a way to get Xcode to recognize that it's doing redundant things or write a script that allows it to be more intelligent about how it transfers resources over to the device?

PS我意识到可能没有任何内置的追加应用功能。我希望不是这种情况。

PS I realize that there may not be any built in 'appending' functionality for an app. I hope that isn't the case.

推荐答案

您可以尝试向项目添加另一个目标并将其命名为没有资源 。从此目标中排除所有重资源。第一次需要使用所有资源目标启动应用程序,下次使用无资源目标。如果您向项目添加了一些内容,则应该使用第一个目标。

You can try add another target to the project and name it "without resources". Exclude all heavy resources from this target. First time you need start app with all resources target, next time use "without resources" target. If you added something to the project you should use first target.

这篇关于为什么Xcode在构建到设备时会复制未更改的资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆