Xcode 6:如何设置自定义包标识符? [英] Xcode 6: how to set a custom bundle identifier?

查看:520
本文介绍了Xcode 6:如何设置自定义包标识符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 6中,我需要为我的应用商店目标设置自定义捆绑包标识符。

In Xcode 6, I need to set a custom bundle identifier for my app store target.

我正在尝试这样做:


  1. 我在Xcode左上角点击我的项目。

  1. I tap my project in Xcode upper left.

我看到了项目设置中心窗格,常规选项卡,身份部分。

I see the project settings center pane, "General" tab, "Identity" section.

我看到捆绑标识符字段,然后单击进行编辑。

I see the "Bundle Identifier" field and I click to edit it.

文本更改为黑色可编辑文本和灰色不可编辑文本的混合。

The text changes to a mix of black editable text and gray uneditable text.

如何编辑捆绑包标识符?

How do I edit the bundle identifier?

推荐答案

(找到答案 - 在此处发帖以帮助其他人,以及如果有人评论)

(Found the answer - posting here to help others, and if people have comments)

Xcode默认根据产品名称自动生成包标识符。

The Xcode default autogenerates the bundle identifier based on the product name.

编辑目标的包标识符:


  1. 点击项目设置中心窗格左上角的显示项目和目标列表图标。

  1. Tap the icon "Show projects and targets list" in project settings center pane upper left.

点击目标。

T在信息选项卡上,打开自定义iOS目标属性下拉箭头。

Tap the "Info" tab, and open the "Custom iOS Target Properties" drop arrow.

您会看到密钥捆绑名称设置为$( PRODUCT_NAME)和密钥Bundle标识符设置为com.example。$(PRODUCT_NAME:rfc1034identifier)。根据需要编辑这些。然后选择产品>清洁菜单项。

You see the Key "Bundle Name" set as "$(PRODUCT_NAME)", and the Key "Bundle identifer" set as "com.example.$(PRODUCT_NAME:rfc1034identifier)". Edit these as you wish. Then choose the "Product > Clean" menu item.

这篇关于Xcode 6:如何设置自定义包标识符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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