构建/签名应用程序时,Xcode 如何使用应用程序 ID?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
对于任何可能偶然发现这个问题的人,我在回答这个相关问题时给出了很多详细的背景信息。
https://stackoverflow.com/a/20557213/117471
基本上可以归结为:
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: