xcode 证书、应用程序 ID 和配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8415021/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Certificates, App ID and Provisioning Profile
提问by testndtv
For submitting an iPhone app to the App Store, we need to create Certificates, App ID and Provisioning Profile.
要将 iPhone 应用程序提交到 App Store,我们需要创建证书、应用程序 ID 和配置文件。
I often get confused whith these things (even after reading the Apple documentation on http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011159-CH1-SW1)
我经常对这些事情感到困惑(即使在阅读了http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/Introduction/Introduction.html#//apple_ref/doc/上的 Apple 文档之后)uid/TP40011159-CH1-SW1)
So could someone please explain me these things in simple terms.
所以有人可以用简单的术语向我解释这些事情。
- Can the same certificate be used for multiple apps (and both for dev/distribution) ?
- Also I guess App Id is unique for each app. But can the same App ID be used for both dev/distribution ?
- For Provisioning Profile, I think we need to create 1 each for Dev/distribution. Correct?
- 同一个证书可以用于多个应用程序(并且都用于开发/分发)吗?
- 另外我猜 App Id 对于每个应用程序都是唯一的。但是相同的 App ID 可以用于 dev/distribution 吗?
- 对于 Provisioning Profile,我认为我们需要为 Dev/distribution 分别创建 1 个。正确的?
Please explain in simple terms. Thank you.
请用通俗的语言解释。谢谢你。
回答by rckoenes
1. Can the same certificate be used for multiple apps (and both for dev/distribution) ?No, distribution certificates can't be used for development, especially the App Store profile which can only be used to submit an app.
1. 可以将同一个证书用于多个应用程序(并且都用于开发/分发)?不,分发证书不能用于开发,尤其是只能用于提交应用程序的App Store配置文件。
2. Also I guess App Id is unique for each app. But can the same App ID be used for both dev/distribution ?
2. 另外我猜 App Id 对于每个应用程序都是唯一的。但是相同的 App ID 可以用于 dev/distribution 吗?
Yes you can use the same app id for the development, ad-hoc and AppStore.
是的,您可以为开发、临时和 AppStore 使用相同的应用程序 ID。
3. For Provisioning Profile, I think we need to create 1 each for Dev/distribution. Correct?
3. 对于 Provisioning Profile,我认为我们需要为 Dev/distribution 分别创建 1 个。正确的?
No, you can create a wildecard development profile *
as the app bundle id. You can even create a wildcard AppStore profile. Only apps signed with this profile will not be able to use pushnotifications or InApp purchases.
不,您可以创建一个通配符开发配置文件*
作为应用程序包 ID。您甚至可以创建通配符 AppStore 配置文件。只有使用此配置文件签名的应用程序将无法使用推送通知或应用程序内购买。
回答by hotpaw2
You need one certificate for Development and one certificate for Distribution (new ones for every year of enrollment). These 2 certificates can be used for any number of iOS apps.
您需要一张开发证书和一张分发证书(每年注册新证书)。这 2 个证书可用于任意数量的 iOS 应用程序。
A bundle ID is what identifies an app (not its name), so you should use the same ID for all versions and builds, including development, ad hoc, distribution, and updates of that same app.
捆绑 ID 用于标识应用程序(而不是其名称),因此您应该对所有版本和构建使用相同的 ID,包括同一应用程序的开发、临时、分发和更新。