iOS 更改目标名称

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15152632/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 22:30:36  来源:igfitidea点击:

iOS changing target name

iosxcode

提问by Satyam

In iOS project, I changed the target name. But for building, on the top left (beside stop button), its still showing old target name only... What should I change so that old project name will completely disappear from XCode?

在 iOS 项目中,我更改了目标名称。但是对于构建,在左上角(停止按钮旁边),它仍然只显示旧的目标名称......我应该如何更改以便旧的项目名称从 XCode 中完全消失?

回答by βhargav?

Manage Schemes

管理方案

Set Name

设置名称

Just Click on your target Name beside stop button > Manage Schemes > Select and change name

只需单击停止按钮旁边的目标名称 > 管理方案 > 选择并更改名称

Altered Name

改名

回答by Vishwas Singh

Select your target from TARGETS(in left navigation bar) and double click, then rename it.

从 TARGETS(在左侧导航栏中)选择您的目标并双击,然后重命名。

enter image description here

在此处输入图片说明

回答by Ameer

If you want to change Project Name, Target name, -Info.plist name & -Prefix.pch name then,

如果要更改项目名称、目标名称、-Info.plist 名称和 -Prefix.pch 名称,则,

    - Select Project in Xcode (.xcodeproj file)
    - Selecte file inspector
    - In identity section change project name which u want to update & press enter
    - After scanning whole project it will ask to change the file names i.e target, plist & pch file
    - Select check boxes as per your need 

回答by pdrcabrod

To make the change of target name effective you can go to manage schemes and there, remove all old targets. Then click on "Autocreate Schemes Now"

要使目标名称的更改生效,您可以转到管理方案,然后在那里删除所有旧目标。然后单击“立即自动创建方案”

回答by yoAlex5

As was mentioned above you can:

如上所述,您可以:

  • Rename a schemavia Manage Schemas...
  • 重命名过schemaManage Schemas...

enter image description here

在此处输入图片说明

  • Rename a targetvia Project Settings
  • 重命名过targetProject Settings

enter image description here

在此处输入图片说明

  • Rename a Groupvia Navigator. In this case you should resolve errors that can be caused by out-to-date path(e.g. Info.plist, Bridging Header) in Build Settings
  • 重命名一个Groupvia Navigator。在这种情况下,您应该解决可能由过时路径(例如 Info.plist、Bridging Header)引起的错误Build Settings

enter image description here

在此处输入图片说明