是否可以通过 xcode 更改 iOS 应用程序的名称?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19594231/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
is it possible to change the name of an iOS app via xcode?
提问by otmezger
we want to publish an update of our app. Is it possible to rename the app after the update? let's say the app is called myAppand I want it to be called myApp 2after the update... can it be done?
我们想发布我们的应用程序的更新。更新后是否可以重命名应用程序?假设该应用程序名为myApp并且我希望在更新后将其称为myApp 2...可以完成吗?
采纳答案by gWiz
Actually you can. You can change the "Bundle Name" which (I think) is the name the App appears on the AppStore and the "Bundle Display Name" which is the name that appears under your icon on the Home screen. But if you change your "Bundle Identifier" then your App is not the same App. More info can be found in the Apple Docs here.
其实你可以。您可以更改“捆绑名称”(我认为)是应用程序出现在 AppStore 上的名称和“捆绑显示名称”,即出现在主屏幕上图标下方的名称。但是,如果您更改了“捆绑标识符”,那么您的应用程序就不是同一个应用程序。可以在此处的 Apple 文档中找到更多信息。
回答by Linh Nguyen
In Build Setting, You can change Product Name.
在 Build Setting 中,您可以更改Product Name。
回答by RyanG
https://stackoverflow.com/a/8074959/480415
https://stackoverflow.com/a/8074959/480415
select your target, "Info" tab, and set the "Bundle display name" field to the name you want (i.e. "MySuperApp"). This is the simplest, pain-free solution.
选择您的目标,“信息”选项卡,并将“捆绑显示名称”字段设置为您想要的名称(即“MySuperApp”)。这是最简单、无痛的解决方案。
回答by dariaa
Sure, you need to modify Bundle display name
in your .plist file
当然,您需要Bundle display name
在 .plist 文件中进行修改
回答by Prak
Actually there are several "app names"... (such as several people call you "friend", "John", "father", "son",... hehehe!)
其实还有好几个“应用名”……(比如几个人叫你“朋友”、“约翰”、“父亲”、“儿子”……呵呵!)
1) the name that you see below the icon- you can change in several ways, but the best suggestion is from @gWiz, just change your "Bundle display name" in your Target properties (tab "Info", or you can find it called "Display Name" in the tab "General").
1)您在图标下方看到的名称- 您可以通过多种方式更改,但最好的建议来自@gWiz,只需在您的目标属性中更改您的“捆绑显示名称”(选项卡“信息”,或者您可以找到它在“常规”选项卡中称为“显示名称”)。
Bundle display name: (Required, Localizable) The user-visible name of the bundle; used by Siri and visible on the Home screen in iOS. See CFBundleDisplayName for details.
捆绑显示名称:(必需,可本地化)捆绑的用户可见名称;由 Siri 使用并在 iOS 的主屏幕上可见。有关详细信息,请参阅 CFBundleDisplayName。
2) the Bundle Name, found in the same "Info" tab, is not "the name the App appears on the AppStore" as suggested by @gWiz, rather:
2)在同一个“信息”选项卡中找到的 Bundle Name不是@gWiz 建议的“应用程序出现在 AppStore 上的名称”,而是:
Bundle Name: (Recommended, Localizable) The short name of the bundle; not intended to be seen by the user. See CFBundleName for details.
捆绑包名称:(推荐,可本地化)捆绑包的简称;不打算让用户看到。有关详细信息,请参阅 CFBundleName。
3) another name is the Product Name, that you can find in "Build Setting" tab - @Lihn suggestion is okay, as from Apple documentation "The product name is the name of your app as it will appear to customers in the store and should be similar to the app name you enter later in iTunes Connect."... but this is a bit confusing, and not 100% correct. In iOS the "Product Name" is not used too much, just forget it. In MacOS maybe you can see somewhere... (suggestions?)
3) 另一个名称是产品名称,您可以在“构建设置”选项卡中找到 - @Lihn 建议是可以的,如 Apple 文档中所示“产品名称是您的应用程序名称,因为它会在商店中向客户显示,并且应该类似于您稍后在 iTunes Connect 中输入的应用程序名称。”...但这有点令人困惑,并且不是 100% 正确。在 iOS 中,“产品名称”用得不多,忘了吧。在 MacOS 中,也许您可以在某处看到...(建议?)
4) the name that you see in AppStore, this is asked in iTunesConnectwhen you create a new app (or want to modify metadata with a new binary version), and is usually just called "Name", or "App Name" in Apple documentation...
4) 您在 AppStore 中看到的名称,当您创建新应用程序(或想要使用新的二进制版本修改元数据)时,在iTunesConnect 中会询问此名称,通常在 Apple 中仅称为“名称”或“应用程序名称”文档...
App Name: (Required, Localizable) The name of the app as shown in AppStore.
应用名称:(必填,可本地化)AppStore 中显示的应用名称。
5)Name of the schemes, name of the targets,... probably you're not interested, or you can experiment by yourself, or read Apple docs (better to experiment, for me)
5)方案名称,目标名称,......可能你不感兴趣,或者你可以自己试验,或者阅读苹果文档(对我来说更好地试验)
At the moment I cannot give you more details, as:
目前我不能给你更多的细节,因为:
but the main idea is:
但主要思想是:
- The name below the icon, on the device, can be edited at a new binary submission changing "Bundle display name"
- The name of the app, as seen inside the AppStore, can be edited again every new binary submission, changing "Name" or "App Name" directly in iTunes.
- 在该图标下面的名称,在设备上,可以在一个新的二进制提交改变“包显示名称”编辑
- 应用程序的名称,如在 AppStore 中看到的,可以在每次提交新的二进制文件时再次编辑,直接在 iTunes 中更改“名称”或“应用程序名称”。
...and both are localizable.
...两者都是可本地化的。
回答by abavisg
The app name is the Product name for Debug/Release in Build Settings -> Packaging. If you change it then the Bundle name and Bundle display name might change too if the default ${PRODUCT_NAME} value is there. According to the Apple docs Bundle Display Name is the name that is displayed under the app icon while Bundle Name is a short name of the above but I am unaware of anything that uses it.
应用程序名称是 Build Settings -> Packaging 中调试/发布的产品名称。如果您更改它,那么如果存在默认的 ${PRODUCT_NAME} 值,则捆绑名称和捆绑显示名称也可能会更改。根据 Apple 文档,捆绑显示名称是显示在应用程序图标下的名称,而捆绑名称是上述名称的简称,但我不知道使用它的任何内容。
回答by Parab
just double click on your project name and rename it, then it will ask for changing all references in project click change.
只需双击您的项目名称并重命名,然后它会要求更改项目单击更改中的所有引用。
回答by Pisca46
For changing the apps name see https://developer.apple.com/library/ios/qa/qa1625/_index.html
要更改应用程序名称,请参阅https://developer.apple.com/library/ios/qa/qa1625/_index.html
However, the directory for the app's data will change as well. If you want to move some data, you can find the directory used by the simulator e.g. with: NSString *homeDir = NSHomeDirectory(); NSLog(@"%@",homeDir); before and after renaming and use 'Go to Folder' in finder to get there.
但是,应用程序数据的目录也会发生变化。如果你想移动一些数据,你可以找到模拟器使用的目录,例如: NSString *homeDir = NSHomeDirectory(); NSLog(@"%@",homeDir); 重命名之前和之后,并在 finder 中使用“转到文件夹”到达那里。