Xcode在蓝色中添加了文件夹,并且相关的文件未编译 [英] Xcode added folder in blue and related there files are not compiling

查看:47
本文介绍了Xcode在蓝色中添加了文件夹,并且相关的文件未编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode项目中单击鼠标右键,然后在 Add File to"projectName" 中创建一个NewFolder "ABCD" 名称,并将其添加到该项目的同一"ABCD"空文件夹中它是蓝色的,我希望它是黄色的.我在Blue文件夹中添加的文件没有在X-Code中编译,所有在Blue文件夹中添加的文件都说在编译代码后找不到该文件.

为什么有默认值,我添加的文件夹与项目相关的链接?

这个问题对我来说很奇怪,您的反馈非常有帮助.

解决方案

如果仅拖放文件并选择创建文件夹引用",它将添加为蓝色文件夹.请确保选择创建组"从对话框中,并确保您已在添加到目标"列表中选择了所有目标部分.

它将被添加为黄色

->通过组,Xcode在项目中存储对每个单独文件的引用.这可能会导致问题:

文件夹参考->文件夹引用更简单.您可以发现文件夹引用,因为它以蓝色而不是黄色显示.

From Xcode project right click and Add File to "projectName" there I created a NewFolder "ABCD" name and added to same "ABCD" empty folder to the project its in Blue colour, I expected its in Yellow Color, What the files which I added inside Blue Colour folder files are not compiling in X-Code all files which added in Blue Colour folder say file is not found after compiling the code.

Is there any why that default, I added folder are link related to the project?

Its very strange for me this issue, Your feedback is very helpful.

解决方案

If you simply drag drop a file and choose Create Folder reference, it will add as a blue folder. Please make sure you select "Create groups" from the dialogue and make sure you have selected all the targets in the "Add To Targets" section.

Like this

It will be added as yellow

Group-> With groups, Xcode stores in the project a reference to each individual file. This can lead to problems:

Folder references-> Folder references are simpler. You can spot a folder reference because it shows up in blue instead of yellow.

这篇关于Xcode在蓝色中添加了文件夹,并且相关的文件未编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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