Xcode构建和资源文件夹 [英] Xcode building and resources folders

查看:119
本文介绍了Xcode构建和资源文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPhone应用程序中有几个资源,当它们被编译时,无论Xcode分组结构如何,它们都会被添加到应用程序资源文件夹的根目录中。这对于大多数事情都很好,但是我需要在app的资源文件夹中的文件夹中构建一组文件。

I have several resources in my iPhone app and when they get compiled they all get added to the root of the resources folder in the app regardless of the Xcode grouping structure. This is fine for most things, however there is a set of files that I need to have structured in folder in the app's resources folder.

目前,我已经添加了我的文件夹使用添加现有文件... - >为添加的文件夹创建文件夹参考到Xcode。这很好,Xcode中的文件夹图标是蓝色而不是黄色。我的问题是Xcode没有注意到这些文件夹中的新文件或更改的文件,因此当我构建我的项目时,新的或更改的图像都不在目标应用程序的资源中。我可以让它工作的唯一方法是做一个干净的,然后构建,这非常烦人,因为我正在进行更改并且有时可能每分钟重新编译几次!

At the moment, I have added my folders to Xcode using "Add Existing Files... -> Create Folder References for Added Folders". This is fine and the folder icons in Xcode are blue instead of yellow. My problem is that Xcode is not noticing and new or changed files within those folders and hence when I build my project, none of the new or changed images are in the target app's resources. The only way I can get it to work is to do a clean, and then build, which is quite annoying as I'm making changes and re-compiling maybe a few times a minute sometimes!

我想在应用程序中保留的资源中的文件夹结构由几个嵌套文件和文件夹组成。

My folder structure in my resources that I want kept on in the app consists of several nested files and folder.

有没有办法让Xcode识别所有已更改或新的文件和文件夹?

Is there some way to get Xcode to recognise all the files and folders that have changed or are new?

谢谢,

Mike

推荐答案


我的问题是Xcode没有注意到这些文件夹中的新文件或更改的文件,因此当我构建时我的项目,目标应用程序资源中没有新的或已更改的图像。

My problem is that Xcode is not noticing and new or changed files within those folders and hence when I build my project, none of the new or changed images are in the target app's resources.

这是一个长期存在的错误;在Adium工作时,它被咬了很多次。请在 RadarWeb 中提交。并感谢提醒;我已经将自己的错误报告提交为x-radar:// problem / 7232149(在OpenRadar中向公众公开)。你应该在你自己的错误报告中提到这个错误号。

This is a long-standing bug; it's bitten me many times while working on Adium. Please file it in RadarWeb. And thanks for the reminder; I've filed my own bug report as x-radar://problem/7232149 (visible to the public in OpenRadar). You should mention this bug number in your own bug report.

作为一种解决方法,你可以右键单击文件夹引用并选择触摸告诉Xcode文件夹已更改。

As a workaround, you can right-click on the folder reference and choose "Touch" to tell Xcode that the folder has changed.

这篇关于Xcode构建和资源文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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