xcode “分发”和“发布”构建配置之间有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8380570/
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 "Distribution" and "Release" build configurations?
提问by dontWatchMyProfile
They both sound like the same thing. Distribution == Release, somehow. Having a hard time figuring out what the difference is.
它们听起来像是同一件事。分发 == 发布,不知何故。很难弄清楚有什么区别。
采纳答案by Michael Dautermann
In my projects they're the same thing, but it really depends on the programmer and the build settings they want to put into each target.
在我的项目中,它们是一回事,但这实际上取决于程序员和他们想要放入每个目标的构建设置。
For one programmer, "Release" might be an ADHOC build meant for internal testing while "Distribution" means a Store build.
对于一个程序员来说,“发布”可能是一个用于内部测试的 ADHOC 构建,而“分发”意味着一个商店构建。
Or maybe a different programmer would do the opposite "Release" is for the Store build and "Distribution" is for ADHOC.
或者,也许不同的程序员会做相反的事情,“发布”适用于商店构建,而“分发”适用于 ADHOC。
Another thing... I usually see both "Release" and "Distribution" choices when I create fresh apps from templates, but "Release" (as a target) was around long before "Distribution", which came in with iOS IIRC. Some apps I've worked on only have "Debug" and "Distribution", another project I have open right now only has "Debug" & "Release". So YMMV.
另一件事......当我从模板创建新的应用程序时,我通常会看到“发布”和“分发”选项,但“发布”(作为目标)早在“分发”之前就已经存在了,它随 iOS IIRC 一起出现。我使用过的一些应用程序只有“调试”和“分发”,我现在打开的另一个项目只有“调试”和“发布”。所以YMMV。
Oh, and here is a related question.
哦,这是一个相关的问题。
回答by hotpaw2
For iOS, the Distribution is usually identical to the Release build except for the code signing. The Distribution build is usually cloned from the final test Release build, but with the code signing changed to using the Distribution certificate instead of the Developer certificate. The reason one needs two different builds is that you can't run a App Store provisioned Distribution signed build for final testing on a developer's device.
对于 iOS,除了代码签名之外,分发版通常与发布版相同。分发版本通常是从最终测试发布版本中克隆出来的,但代码签名更改为使用分发证书而不是开发人员证书。需要两个不同版本的原因是您无法在开发人员的设备上运行 App Store 提供的分发签名版本以进行最终测试。
回答by jithin john
In my Project i use the term release. The release can be to the testers or they can be directly to the client side.
在我的项目中,我使用术语发布。发布可以发给测试人员,也可以直接发给客户端。