前几天我用一个愚蠢的开发代码开始了一个iPhone项目,现在我想改变这个项目的名称,因为它快要完成了。我该怎么做呢?
当前回答
使用目标→构建设置→产品名称。
其他回答
我认为这里有一点混乱:
您想更改项目名称还是 你想在iOS仪表板上更改应用程序名称吗?
通常改变后者就足够了,在plist中添加/修改BUNDLE DISPLAY NAME键。
最好保持项目名称不变,但它可能会被更改。
注意,Bundle显示名称可以包含空格和特殊字符,但项目不能。这样做一些cmd行工具将失败,由于文件名路径规则。
甚至可以本地化更多的Bundle Display名称。
因此,除非您处于早期阶段,需要更改内部项目名称,否则请继续使用Bundle Display name键。
下面的链接适用于Xcode 6,特别是当你在尝试重命名项目后出现错误时。基本上,你只需要为你的应用构建一个新方案。
https://stackoverflow.com/a/27572164/4114835
如果您需要在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中打开目标。 在项目的目标(您当前的开发名称)上构建设置。 在包装下搜索产品名称。将其值更改为您想要的新项目名称。
在Xcode 11中,如果你想改变App的显示名称,你只需要在plist中替换CFBundleDisplayName的值即可:
<key>CFBundleDisplayName</key>
<string>Your App Name</string>
推荐文章
- 如何删除默认的导航栏空间在SwiftUI导航视图
- Ios模拟器:如何关闭应用程序
- 准备好开发人员ID的macOS安装程序包
- 创建配置文件失败
- 如何在iOS中使用Swift编程segue
- Swift -整数转换为小时/分钟/秒
- Swift:声明一个空字典
- 在成功提交我的应用程序后,“太多符号文件”
- 首先添加一个UIView,甚至是导航栏
- 复制并重命名Xcode项目和相关文件夹
- 我如何改变UIButton标题颜色?
- 在Swift中如何调用GCD主线程上的参数方法?
- NSLayoutConstraints是可动画的吗?
- iOS -构建失败,CocoaPods无法找到头文件
- Xcode 4挂在“附加到(应用程序名称)”