iOS 配置和签名概述

发布于 2024-11-02 01:56:53 字数 348 浏览 0 评论 0原文

我对 iOS 开发比较陌生,似乎在配置和代码签名过程中遇到了困难。我似乎总是收到某种警告,并且通常会采用猎枪式方法来进行配置设置。

是否对整个配置和代码签名过程有一个很好的概述?我希望在上述概述中看到的问题类型如下:

  • 什么是代码签名?
  • 什么是配置文件?
  • 为什么这些是必要的?
  • 有哪些常见错误及其解决方案
  • 捆绑包 id 的用途是什么?
  • 应用程序 ID 是做什么用的?
  • 是证书吗?

最重要的是……

  • 当我在 Xcode 中单击“build”时,这些组件会发生什么?

I am relatively new to iOS development and seem to struggle with the provisioning and code signing process. I always seem to have warnings of some sort and usually resort to a shotgun type approach to my provisioning settings.

Is there a good overview of the whole provisioning and code signing process? The type of questions I would like to see in said overview would be like:

  • what is code signing?
  • what is a provisioing profile?
  • why are these necessary?
  • what are some common errors and their solution
  • what is the bundle id for?
  • what is the app id for?
  • and is a certificate?

and most importantly ...

  • what happens with these components when I click "build" in Xcode?

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

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

发布评论

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

评论(2

以可爱出名 2024-11-09 01:56:53

我在代码签名时也多次遇到过这些问题。所以我试图通过一些实验和阅读来理解这些。这是我的文档:

了解 iOS 代码签名

我将很快跟进常见的故障排除点。这些主要包括检查您的钥匙串应用程序是否有有效证书。

至于你最重要的问题,当你“构建并运行”时,默认情况下,使用“调试”构建配置。这些都是在“方案”中设定的。在 xcode 4 中,在下拉列表中选择“编辑方案”,您可以在其中选择用于测试的设备/模拟器版本,并检查各种方案。

I also faced these problems more than a couple of times with code signing. So I tried to understand these with some experimentation and reading. Here is my documentation for the same:

Understanding iOS Code Signing.

I will be following it up with common troubleshooting points soon. These will mostly include checking your Keychain app for valid certificates.

As for your most important question, when you "build and run", by default, the "Debug" build configuration is used. These are set in the "scheme". In xcode 4, select "Edit Sceme" in the drop down where you select the device/simulator version for testing, and check various schemes.

溺渁∝ 2024-11-09 01:56:53

您的许多问题都可以在 iOS 开发人员门户或标准计划用户指南中找到答案。维基百科是了解诸如代码签名证书

关于为什么应用程序必须签名的问题的简短答案是:因为 Apple 是这么说的。一个稍微有用的答案:它通过确保用户安装的应用程序与其各自的开发人员分发的应用程序相同来保护用户、开发人员、Apple 和网络提供商;设备将拒绝运行修改后的应用程序。

Many of your questions are answered in the iOS developer portal, or in the Standard Program User Guide. Wikipedia is a good resource for general concepts like code signing and certificates.

The short answer to the question about why apps have to be signed is: because Apple says so. A slightly more helpful answer: it protects the user, the developer, Apple, and the network provider by ensuring that the apps installed by the user are identical to those distributed by their respective developers; the device will refuse to run modified apps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文