如何在 Xcode 4.0 (build 4A304a) 中更改默认公司名称 [英] How to change the default company name in Xcode 4.0 (build 4A304a)

查看:23
本文介绍了如何在 Xcode 4.0 (build 4A304a) 中更改默认公司名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
在哪里设置公司名称?

我刚刚安装了 Xcode 4.0 (build 4A304a).默认公司名称无法通过我这边的 defaults 命令更新.我在谷歌上搜索了很多并尝试了其他人提到的许多解决方案(AddressBook、com.apple.Xcode 和 com.apple.dt.Xcode plist 文件...).没有一个对我有用...

I installed Xcode 4.0 (build 4A304a) just now. The default company name can't be updated via defaults command on my side. I googled a lot and tried many solutions (AddressBook, com.apple.Xcode and com.apple.dt.Xcode plist file ...) mentioned by others. None works for me...

这不是什么大问题,我什至可以忽略它.但我只想知道为什么以及如何.

It's not a big issue and I can even ignore it. But I just want to know why and how.

您在使用 Xcode 4 时遇到过这个问题吗?请指教,谢谢!

Did you meet with this issue with Xcode 4? Please advise, thanks!

推荐答案

在 XCode 4 中,打开您的项目.选择项目导航器中最顶层的项目(MyProjectName、1 个目标、iOS SDK 4.3 -- 或其他).打开文件检查器 (View->Utilities).在项目文档部分,您应该看到组织"行.编辑它,您创建的新文件将显示新的组织名称.这是一个项目设置,因此您必须为每个项目都这样做.您必须进行搜索和替换才能修复任何现有文件.

In XCode 4, open up your project. Select the top-most item in the Project Navigator (MyProjectName, 1 target, iOS SDK 4.3 -- or whatever). Open up the file inspector (View->Utilities). In the Project Document section, you should see an "Organization" line. Edit that, and new files that you create will display the new organization name. This is a project setting, hence you'll have to do it for every project. You'll have to search-and-replace to fix up any existing files.

对于您创建的新项目,组织名称将是之前打开的项目中的任何值.(您可以在创建新项目时对其进行编辑.)

For new projects that you create, the Organization Name will be whatever the value was on the previously open project. (You can edit it when creating the new project.)

如果 UI 中的组织名称条目是空白的(也许是您在 XCode 中的第一个项目?)它会从地址簿中的我"卡片中提取公司名称.

If the Organization Name entry in the UI is blank (and for your very first project ever in XCode maybe?) it'll pull the business name from the "Me" card in your address book.

这篇关于如何在 Xcode 4.0 (build 4A304a) 中更改默认公司名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆