如何重命名Xcode项目文件 [英] How to rename xcode project file

查看:226
本文介绍了如何重命名Xcode项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何在Xcode中重命名项目?

您好,我想更改xcode项目所在的文件的名称.但是,当我将项目加载备份时,一旦尝试执行此操作,导航菜单中的所有文件名都将变为红色. ..

Hi I am tying to change the name of the file that my xcode project is sitting in. however as soon as I try to do this when I load the project back up all of the file names inside the navigator menu turn red...

更新了问题,我能够重命名我的项目,但是并没有改变

updated question, I was able to rename my project but it did not change this

它仍然显示testtable2 ...我不知道为什么..是因为整个项目都位于这个文件夹中吗?

its still showing testtable2... I have no idea why.. Is it because of the folder name this whole project is sitting in?

推荐答案

首先,备份您的项目

在4.1中:

慢慢地双击项目名称的文本(在蓝色xcode图标的右侧).输入新的项目名称,然后在对话框中重命名项目内容项.

Slowly double click on the text of the project name (right to the blue xcode icon). Type in the new project name and Rename the Project content items in the dialog.

或者在旧版本的Xcode(不确定确切版本)中:

Or in older versions of Xcode (not sure the exact version):

单击Menu > Project > Rename...,然后选择您的新名称.

Click Menu > Project > Rename..., and select your new name.

首选项文件包含许多对项目名称的硬编码引用,因此您不能仅通过Finder/Terminal重新命名该文件.旧方法是很多痛苦的摸索等等.

The preference file contains lots of hard coded references to the project name, so you can't just rename the file through Finder/Terminal. The old way was a lot of painful grepping, etc.

这篇关于如何重命名Xcode项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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