简体   繁体   English

如何更改现有Xcode项目上的组织名称

[英]How to change the organization name on an existing Xcode project

I created a once off Xcode project but entered the organisation name in incorrectly. 我创建了一次性的Xcode项目,但输入的组织名称不正确。 How can I change it? 我该怎么改变它?

There are two things you will need to do. 您需要做两件事。 With the project or target selected, you can update the "Organization" field in the "Project Document" section of the "Utilities" panel (usually on the right). 选择项目或目标后,可以更新“实用程序”面板(通常在右侧)的“项目文档”部分中的“组织”字段。

Next, for an existing source files, you will need to perform a search/replace to update the header comments. 接下来,对于现有源文件,您需要执行搜索/替换以更新标题注释。 Only new files will automatically get the new organization name. 只有新文件才会自动获取新的组织名称。

Click on target -> click show the file inspector -> organization name text field edit organization name 单击目标 - >单击显示文件检查器 - >组织名称文本字段编辑组织名称

在此输入图像描述

If you need to edit Project name 如果需要编辑项目名称

1- select you'r project then press Enter edit name 1-选择您的项目,然后按Enter编辑名称

2- show rename project content items 2-显示重命名项目内容项

在此输入图像描述

3- click rename 3-单击重命名

4- build your project 4-建立你的项目

Note : If you use pod should change Target name in podfile then pod install ، You will find that he has created a new file newTarget.xcworkspace 注意:如果你使用pod应该在podfile中更改目标名称然后pod install ,你会发现他已经创建了一个新文件newTarget.xcworkspace

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM