前几天我用一个愚蠢的开发代码开始了一个iPhone项目,现在我想改变这个项目的名称,因为它快要完成了。我该怎么做呢?
当前回答
最简单的方法:选择TARGET名称,双击它,然后重命名。
你将在设备或模拟器的图标下方看到应用程序的新名称。
其他回答
在Xcode 13中,如果你想改变应用程序的显示名称,那么只需到plist并简单地替换CFBundleDisplayName的值:使用它你可以显示应用程序的名称。 在.plist文件中,您需要添加这个。
CFBundleDisplayName 你的应用名称
在新版本的Xcode (Xcode 5也是)中,要更改项目名称,请遵循以下简单(尽可能详细)的步骤:
注意:在这个例子中,我将把一个假设的“样本”名称改为“测试”名称。
Click twice slowly on the project root in the project navigator and then it becomes editable. Rename the project. After pressing Enter the assistant will suggest you to automatically change all project-name-related entries and will allow you to de-select some of them, if you want. Press 'RENAME' and Xcode will do the rest. In the meanwhile Xcode may ask you about the option of making a snapshot of the project (it is very recommendable to do so). In addition to renaming the project, you may want to rename the scheme so that it matches your new project name. Repeat similar steps like 1 and 2, and press OK. That's it.
另一个场景…
前面的解释与更改项目名称有关,但您可能只需要更改主屏幕应用程序图标下方的显示名称。以下是步骤:
在“支持文件”组中找到信息。Plist(或相关)文件 找到“Bundle display name”键并将值更改为新名称。 从模拟器或任何其他测试设备中删除“旧”应用程序。 再次清理并重新构建应用程序。 就是这样。现在你将在主屏幕上看到新的应用程序名称。
在Xcode中打开目标。 在项目的目标(您当前的开发名称)上构建设置。 在包装下搜索产品名称。将其值更改为您想要的新项目名称。
在Xcode 11中,如果你想改变App的显示名称,你只需要在plist中替换CFBundleDisplayName的值即可:
<key>CFBundleDisplayName</key>
<string>Your App Name</string>
最简单的方法:选择TARGET名称,双击它,然后重命名。
你将在设备或模拟器的图标下方看到应用程序的新名称。
推荐文章
- 如何删除默认的导航栏空间在SwiftUI导航视图
- Ios模拟器:如何关闭应用程序
- 准备好开发人员ID的macOS安装程序包
- 创建配置文件失败
- 如何在iOS中使用Swift编程segue
- Swift -整数转换为小时/分钟/秒
- Swift:声明一个空字典
- 在成功提交我的应用程序后,“太多符号文件”
- 首先添加一个UIView,甚至是导航栏
- 复制并重命名Xcode项目和相关文件夹
- 我如何改变UIButton标题颜色?
- 在Swift中如何调用GCD主线程上的参数方法?
- NSLayoutConstraints是可动画的吗?
- iOS -构建失败,CocoaPods无法找到头文件
- Xcode 4挂在“附加到(应用程序名称)”