捆绑包标识符在iOS项目中是什么意思? [英] What does bundle identifier mean in an iOS project?

查看:636
本文介绍了捆绑包标识符在iOS项目中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用命令行工具模板时,它在向导中具有捆绑标识符.捆绑包标识符是什么意思?这类似于名称空间吗?

When I use command line tool template it has a bundle identifier inside the wizard. What does bundle identifier mean? Is this similar to namespace?

推荐答案

根据苹果文档:

借助捆绑包标识符,iOS和macOS可以识别对您的应用程序的任何更新.您的捆绑包ID必须在Apple上注册,并且对您的应用程序是唯一的.捆绑ID是特定于应用程序类型的(iOS或macOS).同一捆绑包ID不能同时用于iOS和macOS应用程序.

A bundle identifier lets iOS and macOS recognize any updates to your app. Your bundle ID must be registered with Apple and be unique to your app. Bundle IDs are app-type specific (either iOS or macOS). The same bundle ID cannot be used for both iOS and macOS apps.

从Xcode 11.4开始,如果要支持通用购买功能,则可以为iOS和macOS应用程序使用相同的捆绑包标识符.

Since Xcode 11.4, you can use same bundle identifier for both iOS and macOS app if you want to support universal purchase feature.

来自发行说明

Xcode 11.4支持以通用方式购买和发行macOS应用.要将macOS应用作为通用购买进行分发,请在创建新项目时在Xcode模板助手中指定与iOS应用相同的捆绑包标识符.如果您有现有项目,请在项目编辑器"中编辑其包标识符.

Xcode 11.4 supports building and distributing macOS apps as a universal purchase. To distribute your macOS app as a universal purchase, specify the same bundle identifier as your iOS app in the Xcode template assistant when creating a new project. If you have an existing project, edit its bundle identifier in the Project Editor.

这篇关于捆绑包标识符在iOS项目中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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