构建/签名应用程序时,Xcode 如何使用应用程序 ID?

发布于 2024-10-05 00:23:57 字数 330 浏览 0 评论 0原文

iOS 配置文件引用 Apple 应用程序 ID(格式为“A1A2A3A4A5”)。大多数情况下,应用程序的 DNS 形式会替换为星号 (*)。

我的理解是,配置文件存储在iOS开发设备中,并且不被Xcode使用。因此,在构建/签名应用程序时,Xcode 如何将应用程序 ID 包含到可执行文件中? Xcode 拥有的唯一信息是“Bundle Identifier”,其形式为“com.mycompany.myapp” - 但没有 App ID,因此现阶段无法添加应用程序 ID。

有谁知道这是如何工作的。我觉得很多人使用这些工具(就像我一样),但并不真正了解它们的内部结构。

许多问候, 苹果92

iOS Provisioning files make reference to the Apple application ID (of the form "A1A2A3A4A5"). Most often, the DNS form of the application is replaced with a star (*).

My understanding is that the provisioning profile is stored in the iOS development device and is not used by Xcode. Thus, when building/signing the application, how can Xcode include the app ID into the executable file ? The only information Xcode has is the "Bundle Identifier", which is of the form "com.mycompany.myapp" - but there is no App ID, thus there is no way to add the app ID at this stage.

Does anyone know how this works. I feel that many people use those tools (as I do) without really knowing how it's made inside.

Many Regards,
Apple92

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆离笙 2024-10-12 00:23:57

iPhone 应用程序不仅仅是一个可执行文件,它是一个包含可执行文件的捆绑包(如目录),还包含资源(如笔尖或图像),特别是包含一个小的 plist 清单文件,其中包含有关应用程序的详细信息 - 包括应用程序 ID 。配置文件也包含在此应用程序包中。

设备还维护已安装的配置配置文件列表,但配置文件也可以位于应用程序中,并根据应用程序 plist 文件进行检查以确保所有内容都匹配。

An iPhone application is not just an executable, it's a bundle (like a directory) that contains the executable, but also resources (like nibs or images) and in particular contains a small plist manifest file with details about your application - including the application ID. The provisioning profile is also included in this application bundle.

A device also maintains a list of provisioning profiles it has installed, but the profiles can be in the application as well and are checked against the application plist file to make sure everything matches.

情绪失控 2024-10-12 00:23:57

对于任何可能偶然发现这个问题的人,我在回答这个相关问题时给出了很多详细的背景信息。

https://stackoverflow.com/a/20557213/117471

基本上可以归结为:

  1. 捆绑包 ID 是一个字符串在 Xcode 中定义的
  2. App ID 是位于开发者会员中心的一个对象。它经常与 Bundle ID 混淆,因为对象的 App ID Suffix 参数(我试图说明 App ID 不是字符串这一事实。它有效吗?) 与 Bundle ID 匹配您的应用程序的。
  3. iTunes Connect 或 Xcode 中不存在该应用程序 ID。仅在开发者会员中心。

For anyone who may stumble upon this question, I give a lot of detailed context in my answer to this related question.

https://stackoverflow.com/a/20557213/117471

Basically it boils down to this:

  1. A Bundle ID is a string that is defined in Xcode
  2. An App ID is an object that lives in Developer Member Center. It is often confused with Bundle ID because the App ID Suffix parameter of the object (I'm trying to drive home the fact that App ID is not a string. Is it working?) matches the Bundle ID of your app.
  3. The App ID does not exist in iTunes Connect, or Xcode. It is only in Developer Member Center.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文