前几天我用一个愚蠢的开发代码开始了一个iPhone项目,现在我想改变这个项目的名称,因为它快要完成了。我该怎么做呢?
当前回答
我看到了很多在主屏幕上更改应用名称的方法,我认为没有必要编辑你的.plist文件或更改目标的构建设置。
在Xcode 7.2中,默认情况下你的plist文件中甚至没有“bundle display name”。
默认情况下,你的'产品名称'在'构建设置'标签的目标是等于$(TARGET_NAME)。恕我直言,这很方便,我并不想改变。
所以你可以像hallski在他的评论中所说的那样简单地改变你的Target名称。我为它画了一张图:
其他回答
在Xcode 3.2中,只需要在Groups & Files面板中选择Project条目,然后选择菜单项Project→Rename…
在info中更改bundle显示名称。plist文件。就这么简单。
更改“bundle display name”(而不是“bundle name”)是在应用程序名称中包含“+”这样的字符的唯一方法。项目名称中包含特殊字符会导致上传到App Store时出错!
如果您需要在iPhone主屏幕上更改应用程序的名称,则需要在Target配置中进行,而不是在项目配置中进行。
Expand the Targets group in Xcode, and then single-click the item under that. It should share the name of your project, which is also the default name of the application that gets generated. Press Command + I to bring up the Info window, and then navigate to the Build tag. Set the Configuration drop-down to read All Configurations. Look for a setting called Product Name under the Packaging heading. Change that value to the name you want for your compiled applications and, in the immortal words of Bugs Bunny: Voilà! Do a clean and a build. Your application will take on the new name.
在Xcode 5中,我最喜欢的方法是在建筑设置中更改产品名称。在“建筑设置”中搜索“产品名称”,并更改它。
在Xcode 13中,如果你想改变应用程序的显示名称,那么只需到plist并简单地替换CFBundleDisplayName的值:使用它你可以显示应用程序的名称。 在.plist文件中,您需要添加这个。
CFBundleDisplayName 你的应用名称
推荐文章
- 如何删除默认的导航栏空间在SwiftUI导航视图
- Ios模拟器:如何关闭应用程序
- 准备好开发人员ID的macOS安装程序包
- 创建配置文件失败
- 如何在iOS中使用Swift编程segue
- Swift -整数转换为小时/分钟/秒
- Swift:声明一个空字典
- 在成功提交我的应用程序后,“太多符号文件”
- 首先添加一个UIView,甚至是导航栏
- 复制并重命名Xcode项目和相关文件夹
- 我如何改变UIButton标题颜色?
- 在Swift中如何调用GCD主线程上的参数方法?
- NSLayoutConstraints是可动画的吗?
- iOS -构建失败,CocoaPods无法找到头文件
- Xcode 4挂在“附加到(应用程序名称)”