如何更改 xcode 项目中文件的位置? [英] How can I change the location of files in xcode project?

查看:28
本文介绍了如何更改 xcode 项目中文件的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心将一些文件放在了 *.xcodeproj 文件的同一级别.当我将这些文件移动到 Finder 中的正确位置时,Xcode 告诉我这些文件丢失了.所以我删除了包含这些名称已被读取的文件的组(我意识到这是一个错误).我将这些文件从 Finder 拖到 xcode 中以构建一个新组.但是当我尝试运行该项目时,Xcode 仍然找不到这些代码.我该如何解决问题?

I put some files on the same level of *.xcodeproj file carelessly. When I move these files into the right location in Finder, Xcode tells me that these files are missing. So I delete the group which contains these files whose names have been read (I realize it is a mistake). And I drag these files from Finder into the xcode to build a new group. But when I try to run the project, Xcode still can't find these code. How can I solve the problem?

推荐答案

当您看到一个红色的文件(或在错误的位置)时,您可以使用文件检查器(出现在沿着 Xcode 窗口的右侧面板).

When you see a file that is red (or in the wrong place), you can easily correct the location of these files by using the file inspector (which appears along the right side panel of your Xcode window).

看起来像这样:

单击名称旁边的文件夹图标将打开一个打开的面板,您可以从中选择文件的正确位置.

Clicking on the Folder icon next to the name will bring up an open panel from which you can choose the correct location of the file.

这篇关于如何更改 xcode 项目中文件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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