在 Xcode 中部署的所有 4 种方法有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34277575/
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
What's the difference between all 4 methods for deployment in Xcode?
提问by Diego
In Xcode, after archiving you can click "export" to generate an .ipa that you can then distribute outside of the App Store. However, there are several options for exporting. Namely:
在 Xcode 中,归档后您可以单击“导出”以生成一个 .ipa,然后您可以将其分发到 App Store 之外。但是,有多种导出选项。即:
- Save for iOS App Store Deployment
- Save for Ad Hoc Deployment
- Save for Enterprise Deployment
- Save for Development Deployment
- 为 iOS App Store 部署保存
- 保存以供临时部署
- 为企业部署保存
- 保存用于开发部署
What are the differences between this four methods?
这四种方法有什么区别?
采纳答案by Diego
As far as I can tell, the only difference is the provisioning profile that is included within the .ipa file. Also, if you have not generated the profile that is needed, Xcode will automatically generate it for you:
据我所知,唯一的区别是包含在 .ipa 文件中的配置文件。此外,如果您尚未生成所需的配置文件,Xcode 会自动为您生成:
- If you choose "Save for iOS App Store Deployment", a regular distribution profile will be used.
- If you choose "Save for Ad Hoc Deployment", an Ad Hoc distribution profile will be used.
- If you choose "Save for Enterprise Deployment", an In House distribution profile will be used.
- If you choose "Save for Development Deployment", a regular development profile will be used.
- 如果您选择“保存用于 iOS App Store 部署”,则将使用常规分发配置文件。
- 如果您选择“Save for Ad Hoc Deployment”,则将使用 Ad Hoc 分发配置文件。
- 如果您选择“保存用于企业部署”,则将使用内部分发配置文件。
- 如果您选择“保存用于开发部署”,则将使用常规开发配置文件。
I had a lot of problems trying to understand this and I came to the conclusion that Apple, in trying to make things "simpler," they made things a lot more confusing and harder to understand. In my opinion it's always better to know what you're doing instead of having the machine do it automatically for you.
我在试图理解这一点时遇到了很多问题,我得出的结论是,苹果试图让事情变得“更简单”,他们让事情变得更加混乱和难以理解。在我看来,最好知道自己在做什么,而不是让机器自动为您做。