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
iOS changing target name
提问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?
Just Click on your target Name beside stop button > Manage Schemes > Select and change name
只需单击停止按钮旁边的目标名称 > 管理方案 > 选择并更改名称
回答by Vishwas Singh
回答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
schema
viaManage Schemas...
- 重命名过
schema
孔Manage Schemas...
- Rename a
target
viaProject Settings
- 重命名过
target
孔Project Settings
- Rename a
Group
viaNavigator
. In this case you should resolve errors that can be caused by out-to-date path(e.g. Info.plist, Bridging Header) inBuild Settings
- 重命名一个
Group
viaNavigator
。在这种情况下,您应该解决可能由过时路径(例如 Info.plist、Bridging Header)引起的错误Build Settings